ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1686187 - /webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecDKEncrypt.java
Date Thu, 18 Jun 2015 11:16:51 GMT
Author: coheigea
Date: Thu Jun 18 11:16:50 2015
New Revision: 1686187

URL: http://svn.apache.org/r1686187
Log:
[WSS-541] - Minor modification.  This closes #1.

Modified:
    webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecDKEncrypt.java

Modified: webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecDKEncrypt.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecDKEncrypt.java?rev=1686187&r1=1686186&r2=1686187&view=diff
==============================================================================
--- webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecDKEncrypt.java
(original)
+++ webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecDKEncrypt.java
Thu Jun 18 11:16:50 2015
@@ -88,6 +88,14 @@ public class WSSecDKEncrypt extends WSSe
         }
         Element externRefList = encryptForExternalRef(null, parts);
 
+        addAttachmentEncryptedDataElements(secHeader);
+
+        addExternalRefElement(externRefList, secHeader);
+
+        return doc;
+    }
+    
+    public void addAttachmentEncryptedDataElements(WSSecHeader secHeader) {
         if (attachmentEncryptedDataElements != null) {
             for (int i = 0; i < attachmentEncryptedDataElements.size(); i++) {
                 Element encryptedData = attachmentEncryptedDataElements.get(i);
@@ -96,10 +104,6 @@ public class WSSecDKEncrypt extends WSSe
                 );
             }
         }
-
-        addExternalRefElement(externRefList, secHeader);
-
-        return doc;
     }
 
     /**



Mime
View raw message