cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1331492 - in /cxf/sandbox/fediz/fediz-idp-sts: pom.xml src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java src/main/java/org/apache/cxf/fediz/service/sts/UsernamePasswordCallbackHandler.java
Date Fri, 27 Apr 2012 16:27:21 GMT
Author: coheigea
Date: Fri Apr 27 16:27:21 2012
New Revision: 1331492

URL: http://svn.apache.org/viewvc?rev=1331492&view=rev
Log:
Minor refactoring

Modified:
    cxf/sandbox/fediz/fediz-idp-sts/pom.xml
    cxf/sandbox/fediz/fediz-idp-sts/src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java
    cxf/sandbox/fediz/fediz-idp-sts/src/main/java/org/apache/cxf/fediz/service/sts/UsernamePasswordCallbackHandler.java

Modified: cxf/sandbox/fediz/fediz-idp-sts/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/fediz/fediz-idp-sts/pom.xml?rev=1331492&r1=1331491&r2=1331492&view=diff
==============================================================================
--- cxf/sandbox/fediz/fediz-idp-sts/pom.xml (original)
+++ cxf/sandbox/fediz/fediz-idp-sts/pom.xml Fri Apr 27 16:27:21 2012
@@ -49,15 +49,6 @@
 			</exclusions>
 			-->
         </dependency>        
-        
-        
-        <!--
-        <dependency>
-            <groupId>com.talend.sf</groupId>
-            <artifactId>cxf-sts-core</artifactId>
-            <version>${sts.version}</version>
-        </dependency>
-        -->
    </dependencies>
 
     <build>

Modified: cxf/sandbox/fediz/fediz-idp-sts/src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/fediz/fediz-idp-sts/src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java?rev=1331492&r1=1331491&r2=1331492&view=diff
==============================================================================
--- cxf/sandbox/fediz/fediz-idp-sts/src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java
(original)
+++ cxf/sandbox/fediz/fediz-idp-sts/src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java
Fri Apr 27 16:27:21 2012
@@ -41,18 +41,20 @@ public class FileClaimsHandler implement
     public static final URI ROLE = 
         URI.create("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/role");
 
-    private Map<String,Map<String,String>> userClaims = null;
+    private Map<String, Map<String, String>> userClaims = null;
 
-    public void setUserClaims(Map<String,Map<String,String>> userClaims) {
+    public void setUserClaims(Map<String, Map<String, String>> userClaims) {
         this.userClaims = userClaims;
     }
 
-    public Map<String,Map<String,String>> getUserClaims() {
+    public Map<String, Map<String, String>> getUserClaims() {
         return userClaims;
     }
 
     @Override
-    public ClaimCollection retrieveClaimValues(Principal principal, RequestClaimCollection
claims, WebServiceContext context, String realm) {
+    public ClaimCollection retrieveClaimValues(
+        Principal principal, RequestClaimCollection claims, WebServiceContext context, String
realm
+    ) {
 
         ClaimsParameters params = new ClaimsParameters();
         params.setPrincipal(principal);

Modified: cxf/sandbox/fediz/fediz-idp-sts/src/main/java/org/apache/cxf/fediz/service/sts/UsernamePasswordCallbackHandler.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/fediz/fediz-idp-sts/src/main/java/org/apache/cxf/fediz/service/sts/UsernamePasswordCallbackHandler.java?rev=1331492&r1=1331491&r2=1331492&view=diff
==============================================================================
--- cxf/sandbox/fediz/fediz-idp-sts/src/main/java/org/apache/cxf/fediz/service/sts/UsernamePasswordCallbackHandler.java
(original)
+++ cxf/sandbox/fediz/fediz-idp-sts/src/main/java/org/apache/cxf/fediz/service/sts/UsernamePasswordCallbackHandler.java
Fri Apr 27 16:27:21 2012
@@ -27,21 +27,21 @@ import org.apache.ws.security.WSPassword
 
 public class UsernamePasswordCallbackHandler implements CallbackHandler {
 
-    private Map<String,String> passwords;
+    private Map<String, String> passwords;
 
-    public void setPasswords(Map<String,String> passwords) {
+    public void setPasswords(Map<String, String> passwords) {
         this.passwords = passwords;
     }
 
-    public Map<String,String> getPasswords() {
+    public Map<String, String> getPasswords() {
         return passwords;
     }
 
-    public void handle(Callback[] callbacks) throws IOException,
-    UnsupportedCallbackException {
+    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
{
 
-        if (getPasswords() == null || getPasswords().size() == 0)
+        if (getPasswords() == null || getPasswords().size() == 0) {
             return;
+        }
 
         for (int i = 0; i < callbacks.length; i++) {
             if (callbacks[i] instanceof WSPasswordCallback) { // CXF



Mime
View raw message