ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1686184 - /webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecDKEncrypt.java
Date Thu, 18 Jun 2015 11:04:24 GMT
Author: coheigea
Date: Thu Jun 18 11:04:24 2015
New Revision: 1686184

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

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

Modified: webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecDKEncrypt.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecDKEncrypt.java?rev=1686184&r1=1686183&r2=1686184&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecDKEncrypt.java
(original)
+++ webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/WSSecDKEncrypt.java
Thu Jun 18 11:04:24 2015
@@ -72,6 +72,14 @@ public class WSSecDKEncrypt extends WSSe
                 
         Element externRefList = encrypt();
 
+        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);
@@ -80,10 +88,6 @@ public class WSSecDKEncrypt extends WSSe
                 );
             }
         }
-
-        addExternalRefElement(externRefList, secHeader);
-
-        return doc;
     }
     
     public Element encrypt() throws WSSecurityException {



Mime
View raw message