cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1188062 - in /cxf/trunk/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers: ApplicationController.java MemoryOAuthDataProvider.java
Date Mon, 24 Oct 2011 09:44:09 GMT
Author: ningjiang
Date: Mon Oct 24 09:44:09 2011
New Revision: 1188062

URL: http://svn.apache.org/viewvc?rev=1188062&view=rev
Log:
Fixed the CS errors of oauth demo

Modified:
    cxf/trunk/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/ApplicationController.java
    cxf/trunk/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/MemoryOAuthDataProvider.java

Modified: cxf/trunk/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/ApplicationController.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/ApplicationController.java?rev=1188062&r1=1188061&r2=1188062&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/ApplicationController.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/ApplicationController.java
Mon Oct 24 09:44:09 2011
@@ -74,7 +74,8 @@ public class ApplicationController imple
         String secretKey = tokenGen.generate(new SecureRandom().generateSeed(20));
 
         Client clientInfo = 
-new Client(consumerKey, secretKey, clientApp.getClientName(), clientApp.getCallbackURL());
+            new Client(consumerKey, secretKey, clientApp.getClientName(),
+                clientApp.getCallbackURL());
         clientInfo.setLoginName(principal.getName());
 
         Client authNInfo = clientManager.registerNewClient(consumerKey, clientInfo);

Modified: cxf/trunk/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/MemoryOAuthDataProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/MemoryOAuthDataProvider.java?rev=1188062&r1=1188061&r2=1188062&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/MemoryOAuthDataProvider.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/MemoryOAuthDataProvider.java
Mon Oct 24 09:44:09 2011
@@ -28,7 +28,6 @@ import java.util.concurrent.ConcurrentHa
 import net.oauth.OAuth;
 import net.oauth.OAuthProblemException;
 
-import org.apache.cxf.common.util.StringUtils;
 import org.apache.cxf.jaxrs.impl.MetadataMap;
 import org.apache.cxf.rs.security.oauth.data.AccessToken;
 import org.apache.cxf.rs.security.oauth.data.Client;
@@ -124,7 +123,8 @@ public class MemoryOAuthDataProvider imp
         String accessTokenString = generateToken();
         String tokenSecretString = generateToken();
 
-        AccessToken accessToken = new AccessToken(client, accessTokenString, tokenSecretString,
3600, System.currentTimeMillis()/1000);
+        AccessToken accessToken = new AccessToken(client, accessTokenString,
+            tokenSecretString, 3600, System.currentTimeMillis() / 1000);
 
         accessToken.setScopes(requestToken.getScopes());
         accessToken.setUris(requestToken.getUris());



Mime
View raw message