ws-wss4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r781973 - /webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecEncrypt.java
Date Fri, 05 Jun 2009 10:17:16 GMT
Author: coheigea
Date: Fri Jun  5 10:17:16 2009
New Revision: 781973

URL: http://svn.apache.org/viewvc?rev=781973&view=rev
Log:
Changed the code for wsse11:EncryptedHeader to make it work with other SAAJ implementations

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

Modified: webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecEncrypt.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecEncrypt.java?rev=781973&r1=781972&r2=781973&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecEncrypt.java (original)
+++ webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecEncrypt.java Fri Jun 
5 10:17:16 2009
@@ -474,7 +474,9 @@
                     // Header node as well
                     //
                     elementToEncrypt.getParentNode().appendChild(elem);
-                    elem.appendChild(elementToEncrypt);
+                    elementToEncrypt = 
+                        (Element)elementToEncrypt.getParentNode().removeChild(elementToEncrypt);
+                    elementToEncrypt = (Element)elem.appendChild(elementToEncrypt);
                     
                     NamedNodeMap map = elementToEncrypt.getAttributes();
                     for (int i = 0 ; i < map.getLength() ; i++) {



---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Mime
View raw message