cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From owu...@apache.org
Subject svn commit: r1340416 - /cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java
Date Sat, 19 May 2012 11:16:17 GMT
Author: owulff
Date: Sat May 19 11:16:16 2012
New Revision: 1340416

URL: http://svn.apache.org/viewvc?rev=1340416&view=rev
Log:
[FEDIZ-12] SAML 1.1 token validation fails

Modified:
    cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java

Modified: cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java?rev=1340416&r1=1340415&r2=1340416&view=diff
==============================================================================
--- cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java
(original)
+++ cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java
Sat May 19 11:16:16 2012
@@ -192,7 +192,7 @@ public class SAMLTokenValidator implemen
 
             TokenValidatorResponse response = new TokenValidatorResponse(
                     assertion.getId(), p.getName(), assertionIssuer, roles,
-                    claims, audience);
+                    new ClaimCollection(claims), audience);
 
             return response;
 
@@ -212,9 +212,8 @@ public class SAMLTokenValidator implemen
             }
             return Collections.emptyList();
         }
-        ClaimCollection collection = new ClaimCollection();
+        List<Claim> collection = new ArrayList<Claim>();
         Map<String, Claim> claimsMap = new HashMap<String, Claim>();
-        
 
         for (org.opensaml.saml1.core.AttributeStatement statement : attributeStatements)
{
             if (LOG.isDebugEnabled()) {



Mime
View raw message