You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by ru...@apache.org on 2007/08/08 03:12:49 UTC

svn commit: r563714 - /webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecDKEncrypt.java

Author: ruchithf
Date: Tue Aug  7 18:12:48 2007
New Revision: 563714

URL: http://svn.apache.org/viewvc?view=rev&rev=563714
Log:
Fixed WSS-77

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

Modified: webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecDKEncrypt.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecDKEncrypt.java?view=diff&rev=563714&r1=563713&r2=563714
==============================================================================
--- webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecDKEncrypt.java (original)
+++ webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecDKEncrypt.java Tue Aug  7 18:12:48 2007
@@ -89,7 +89,11 @@
         }
 
         Vector encDataRefs = new Vector();
-
+        
+        if(envelope == null) {
+            envelope = doc.getDocumentElement();
+        }
+        
         for (int part = 0; part < references.size(); part++) {
             WSEncryptionPart encPart = (WSEncryptionPart) references.get(part);
 



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