cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [01/18] cxf-fediz git commit: Whitespace cleanup
Date Mon, 13 Feb 2017 11:36:17 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 29bf8de22 -> 2ca318630


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/2ca31863/systests/webapps/spring2Webapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
----------------------------------------------------------------------
diff --git a/systests/webapps/spring2Webapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
b/systests/webapps/spring2Webapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
index 5d90f9c..3746936 100644
--- a/systests/webapps/spring2Webapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
+++ b/systests/webapps/spring2Webapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
@@ -44,7 +44,7 @@ import org.springframework.security.context.SecurityContextHolder;
 public class FederationServlet extends HttpServlet {
 
     /**
-     * 
+     *
      */
     private static final long serialVersionUID = -9019993850246851112L;
 
@@ -68,11 +68,11 @@ public class FederationServlet extends HttpServlet {
 
         // Access Spring security context
         Authentication auth = SecurityContextHolder.getContext().getAuthentication();
-        
+
         if (auth instanceof FederationAuthenticationToken) {
             FederationAuthenticationToken fedToken = (FederationAuthenticationToken)auth;
             List<String> roleListToCheck = Arrays.asList("Admin", "Manager", "User",
"Authenticated");
-            
+
             for (String item : roleListToCheck) {
                 boolean found = false;
                 for (GrantedAuthority ga : fedToken.getAuthorities()) {
@@ -83,26 +83,26 @@ public class FederationServlet extends HttpServlet {
                 }
                 out.println("<p>role:" + item + "=" + (found ? "true" : "false") +
"</p>");
             }
-            
+
             ClaimCollection claims = fedToken.getClaims();
             for (Claim c : claims) {
                 out.println("<p>" + c.getClaimType().toString() + "=" + c.getValue()
+ "</p>");
             }
-            
+
             Element el = fedToken.getLoginToken();
             if (el != null) {
                 out.println("loginToken=FOUND{FedizPrincipal}<p>");
             }
-            
+
             el = SecurityTokenThreadLocal.getToken();
             if (el != null) {
                 out.println("loginToken=FOUND{SecurityTokenThreadLocal}<p>");
             }
-            
+
         }
-                
+
         out.println("</body>");
-        
+
     }
 
 }

http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/2ca31863/systests/webapps/springPreauthWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
----------------------------------------------------------------------
diff --git a/systests/webapps/springPreauthWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
b/systests/webapps/springPreauthWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
index d23281c..1d2cc7a 100644
--- a/systests/webapps/springPreauthWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
+++ b/systests/webapps/springPreauthWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
@@ -44,7 +44,7 @@ import org.springframework.util.Assert;
 public class FederationServlet extends HttpServlet {
 
     /**
-     * 
+     *
      */
     private static final long serialVersionUID = -9019993850246851112L;
 
@@ -78,31 +78,31 @@ public class FederationServlet extends HttpServlet {
             for (Claim c : claims) {
                 out.println("<p>" + c.getClaimType().toString() + "=" + c.getValue()
+ "</p>");
             }
-            
+
             Element el = fp.getLoginToken();
             if (el != null) {
                 out.println("loginToken=FOUND{FedizPrincipal}<p>");
             }
-            
+
             el = SecurityTokenThreadLocal.getToken();
             if (el != null) {
                 out.println("loginToken=FOUND{SecurityTokenThreadLocal}<p>");
             }
         }
-        
+
         out.println("</body>");
-        
+
         // Access Spring security context
         Assert.notNull(SecurityContextHolder.getContext().getAuthentication(),
                        "SecurityContextHolder Authentication not null");
-        
+
         Authentication obj = SecurityContextHolder.getContext().getAuthentication();
         System.out.println("getCredentials: " + obj.getCredentials().toString());
         System.out.println("getDetails: " + obj.getDetails().toString());
         System.out.println("getName: " + obj.getName().toString());
         System.out.println("getAuthorities: " + obj.getAuthorities().toString());
         System.out.println("getPrincipal: " + obj.getPrincipal().toString());
-        
+
     }
 
 }

http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/2ca31863/systests/webapps/springWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
----------------------------------------------------------------------
diff --git a/systests/webapps/springWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
b/systests/webapps/springWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
index df0ce26..c846ca3 100644
--- a/systests/webapps/springWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
+++ b/systests/webapps/springWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
@@ -44,7 +44,7 @@ import org.springframework.security.core.context.SecurityContextHolder;
 public class FederationServlet extends HttpServlet {
 
     /**
-     * 
+     *
      */
     private static final long serialVersionUID = -9019993850246851112L;
 
@@ -68,11 +68,11 @@ public class FederationServlet extends HttpServlet {
 
         // Access Spring security context
         Authentication auth = SecurityContextHolder.getContext().getAuthentication();
-        
+
         if (auth instanceof FederationAuthenticationToken) {
             FederationAuthenticationToken fedToken = (FederationAuthenticationToken)auth;
             List<String> roleListToCheck = Arrays.asList("Admin", "Manager", "User",
"Authenticated");
-            
+
             for (String item : roleListToCheck) {
                 boolean found = false;
                 for (GrantedAuthority ga : fedToken.getAuthorities()) {
@@ -83,26 +83,26 @@ public class FederationServlet extends HttpServlet {
                 }
                 out.println("<p>role:" + item + "=" + (found ? "true" : "false") +
"</p>");
             }
-            
+
             ClaimCollection claims = fedToken.getClaims();
             for (Claim c : claims) {
                 out.println("<p>" + c.getClaimType().toString() + "=" + c.getValue()
+ "</p>");
             }
-            
+
             Element el = fedToken.getLoginToken();
             if (el != null) {
                 out.println("loginToken=FOUND{FedizPrincipal}<p>");
             }
-            
+
             el = SecurityTokenThreadLocal.getToken();
             if (el != null) {
                 out.println("loginToken=FOUND{SecurityTokenThreadLocal}<p>");
             }
-            
+
         }
-                
+
         out.println("</body>");
-        
+
     }
 
 }


Mime
View raw message