You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2017/02/02 15:57:37 UTC
svn commit: r1781408 -
/webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/ext/AttachmentRequestCallback.java
Author: coheigea
Date: Thu Feb 2 15:57:36 2017
New Revision: 1781408
URL: http://svn.apache.org/viewvc?rev=1781408&view=rev
Log:
Make it configurable whether to remove an attachment or not
Modified:
webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/ext/AttachmentRequestCallback.java
Modified: webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/ext/AttachmentRequestCallback.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/ext/AttachmentRequestCallback.java?rev=1781408&r1=1781407&r2=1781408&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/ext/AttachmentRequestCallback.java (original)
+++ webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/ext/AttachmentRequestCallback.java Thu Feb 2 15:57:36 2017
@@ -25,6 +25,7 @@ public class AttachmentRequestCallback i
private String attachmentId;
private List<Attachment> attachments;
+ private boolean removeAttachments = true;
/**
* The requested attachment which will be secured. If null all attachments are requested
@@ -44,4 +45,16 @@ public class AttachmentRequestCallback i
public void setAttachments(List<Attachment> attachments) {
this.attachments = attachments;
}
+
+ public boolean isRemoveAttachments() {
+ return removeAttachments;
+ }
+
+ /**
+ * Set whether to remove the attachments when we're reading them.
+ * The default is "true".
+ */
+ public void setRemoveAttachments(boolean removeAttachments) {
+ this.removeAttachments = removeAttachments;
+ }
}