summaryrefslogtreecommitdiff
path: root/pdf-over-signator/src/main/java/at/asit/pdfover
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-signator/src/main/java/at/asit/pdfover')
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLRequest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLRequest.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLRequest.java
index f4e1fa8e..15f31771 100644
--- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLRequest.java
+++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SLRequest.java
@@ -66,6 +66,18 @@ public class SLRequest {
}
/**
+ * The SL request String with the document defined as file upload
+ * @return SL request String
+ */
+ public String getFileUploadRequest() {
+ String fileUploadRequest = this.request.replace(
+ DATAOBJECT_STRING,
+ "<sl:LocRefContent>formdata:fileupload</sl:LocRefContent>"); //$NON-NLS-1$
+
+ return fileUploadRequest;
+ }
+
+ /**
* The SL request String with the document referenced as an URI
*
* This SL Request is always a detached signature request which contains a