Author: ruchithf
Date: Tue Aug 29 09:59:10 2006
New Revision: 438115

URL: http://svn.apache.org/viewvc?rev=438115&view=rev
Log:
STR must be the first element of the DerivedKeyToken

Modified:
    
webservices/wss4j/trunk/src/org/apache/ws/security/message/token/DerivedKeyToken.java

Modified: 
webservices/wss4j/trunk/src/org/apache/ws/security/message/token/DerivedKeyToken.java
URL: 
http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/message/token/DerivedKeyToken.java?rev=438115&r1=438114&r2=438115&view=diff
==============================================================================
--- 
webservices/wss4j/trunk/src/org/apache/ws/security/message/token/DerivedKeyToken.java
 (original)
+++ 
webservices/wss4j/trunk/src/org/apache/ws/security/message/token/DerivedKeyToken.java
 Tue Aug 29 09:59:10 2006
@@ -128,12 +128,12 @@
     public void setSecuityTokenReference(SecurityTokenReference ref) {
         this.elementSecurityTokenReference = ref.getElement();
         //WSSecurityUtil.appendChildElement(doc, this.element, 
ref.getElement());
-        this.element.appendChild(ref.getElement());
+        WSSecurityUtil.prependChildElement(this.element.getOwnerDocument(), 
this.element, ref.getElement(), false);
     }
     
     public void setSecuityTokenReference(Element elem) {
         this.elementSecurityTokenReference = elem;
-        this.element.appendChild(elem);
+        WSSecurityUtil.prependChildElement(elem.getOwnerDocument(), 
this.element, elem, false);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to