cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1391032 - /cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java
Date Thu, 27 Sep 2012 14:42:01 GMT
Author: coheigea
Date: Thu Sep 27 14:42:00 2012
New Revision: 1391032

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

Modified:
    cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java

Modified: cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java?rev=1391032&r1=1391031&r2=1391032&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java
(original)
+++ cxf/branches/2.6.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/DefaultClaimsPolicyValidator.java
Thu Sep 27 14:42:00 2012
@@ -101,7 +101,7 @@ public class DefaultClaimsPolicyValidato
                 
                 URI attributeNamespace = URI.create(attribute.getNameFormat());
                 String desiredRole = attributeNamespace.relativize(claimURI).toString();
-                if (attribute.getName().equals(desiredRole)
+                if ((attribute.getName().equals(claimURI.toString()) || attribute.getName().equals(desiredRole))
                     && attribute.getAttributeValues() != null && !attribute.getAttributeValues().isEmpty())
{
                     return true;
                 }



Mime
View raw message