cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1391031 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java
Date Thu, 27 Sep 2012 14:30:06 GMT
Author: coheigea
Date: Thu Sep 27 14:30:06 2012
New Revision: 1391031

URL: http://svn.apache.org/viewvc?rev=1391031&view=rev
Log:
Correcting the DefaultClaimsPolicyValidator

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java?rev=1391031&r1=1391030&r2=1391031&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java
Thu Sep 27 14:30:06 2012
@@ -99,9 +99,7 @@ public class DefaultClaimsPolicyValidato
             List<org.opensaml.saml2.core.Attribute> attributes = statement.getAttributes();
             for (org.opensaml.saml2.core.Attribute attribute : attributes) {
                 
-                URI attributeNamespace = URI.create(attribute.getNameFormat());
-                String desiredRole = attributeNamespace.relativize(claimURI).toString();
-                if (attribute.getName().equals(desiredRole)
+                if (attribute.getName().equals(claimURI.toString())
                     && attribute.getAttributeValues() != null && !attribute.getAttributeValues().isEmpty())
{
                     return true;
                 }



Mime
View raw message