cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1405874 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
Date Mon, 05 Nov 2012 16:49:59 GMT
Author: coheigea
Date: Mon Nov  5 16:49:59 2012
New Revision: 1405874

URL: http://svn.apache.org/viewvc?rev=1405874&view=rev
Log:
[CXF-4612] - SAML assertion element is not imported into SecurityHeader document

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

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java?rev=1405874&r1=1405873&r2=1405874&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java
Mon Nov  5 16:49:59 2012
@@ -695,10 +695,11 @@ public abstract class AbstractBindingBui
                     // TODO We only support using a KeyIdentifier for the moment
                     SecurityTokenReference secRef = 
                         createSTRForSamlAssertion(doc, assertionWrapper.getId(), saml1, false);
-                    addSupportingElement(secRef.getElement());
+                    Element clone = cloneElement(secRef.getElement());
+                    addSupportingElement(clone);
                     part = new WSEncryptionPart("STRTransform", null, "Element");
                     part.setId(secRef.getID());
-                    part.setElement(secRef.getElement());
+                    part.setElement(clone);
                 }
             } else if (tempTok instanceof WSSecurityTokenHolder) {
                 SecurityToken token = ((WSSecurityTokenHolder)tempTok).getToken();



Mime
View raw message