ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1482755 - /webservices/wss4j/trunk/ws-security-policy-stax/src/main/java/org/apache/wss4j/policy/stax/assertionStates/TokenAssertionState.java
Date Wed, 15 May 2013 10:53:44 GMT
Author: coheigea
Date: Wed May 15 10:53:44 2013
New Revision: 1482755

URL: http://svn.apache.org/r1482755
Log:
Allow all SupportingTokens to be signed

Modified:
    webservices/wss4j/trunk/ws-security-policy-stax/src/main/java/org/apache/wss4j/policy/stax/assertionStates/TokenAssertionState.java

Modified: webservices/wss4j/trunk/ws-security-policy-stax/src/main/java/org/apache/wss4j/policy/stax/assertionStates/TokenAssertionState.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-policy-stax/src/main/java/org/apache/wss4j/policy/stax/assertionStates/TokenAssertionState.java?rev=1482755&r1=1482754&r2=1482755&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-policy-stax/src/main/java/org/apache/wss4j/policy/stax/assertionStates/TokenAssertionState.java
(original)
+++ webservices/wss4j/trunk/ws-security-policy-stax/src/main/java/org/apache/wss4j/policy/stax/assertionStates/TokenAssertionState.java
Wed May 15 10:53:44 2013
@@ -100,9 +100,10 @@ public abstract class TokenAssertionStat
                 }
 
                 SupportingTokens supportingTokens = (SupportingTokens) parentAssertion;
-                // Allow SupportingToken policies which are processed as SignedSupportingTokens
-                if (!(WSSecurityTokenConstants.TokenUsage_SupportingTokens.getName().equals(supportingTokens.getName().getLocalPart())
-                    && !tokenUsage.getName().contains("Endorsing"))
+                
+                // Allow *SupportingToken policies which are processed as Signed*SupportingTokens
+                if (!(tokenUsage.getName().startsWith("Signed")
+                    && !supportingTokens.getName().getLocalPart().contains("Signed"))
                     && !tokenUsage.getName().equals(supportingTokens.getName().getLocalPart()))
{
                     ignoreToken++;
                     continue loop;



Mime
View raw message