cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1099499 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/TransportBindingHandler.java
Date Wed, 04 May 2011 16:04:42 GMT
Author: coheigea
Date: Wed May  4 16:04:41 2011
New Revision: 1099499

URL: http://svn.apache.org/viewvc?rev=1099499&view=rev
Log:
[CXF-3842] - wsse:Reference used instead of wsse:KeyIdentifier error on the server: Cannot
resolve KeyInfo for verifying signature

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/TransportBindingHandler.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/TransportBindingHandler.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/TransportBindingHandler.java?rev=1099499&r1=1099498&r2=1099499&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/TransportBindingHandler.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/TransportBindingHandler.java
Wed May  4 16:04:41 2011
@@ -442,12 +442,13 @@ public class TransportBindingHandler ext
                 String tokenType = secTok.getTokenType();
                 if (WSConstants.WSS_SAML_TOKEN_TYPE.equals(tokenType)) {
                     sig.setCustomTokenValueType(WSConstants.WSS_SAML_KI_VALUE_TYPE);
+                    sig.setKeyIdentifierType(WSConstants.CUSTOM_KEY_IDENTIFIER);
                 } else if (WSConstants.WSS_SAML2_TOKEN_TYPE.equals(tokenType)) {
                     sig.setCustomTokenValueType(WSConstants.WSS_SAML2_KI_VALUE_TYPE);
+                    sig.setKeyIdentifierType(WSConstants.CUSTOM_KEY_IDENTIFIER);
                 } else {
                     sig.setCustomTokenValueType(tokenType);
                 }
-                sig.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING);
             }
             Crypto crypto = null;
             if (secTok.getSecret() == null) {



Mime
View raw message