aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common/src/main/java/at/gv/egiz/pdfas
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-05-06 15:55:34 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-05-06 15:55:34 +0200
commitaf2d6dad0711f95c280621b94f7ca3da8f91632a (patch)
tree4cc1ec16ca711ed6892cca2c0075177bcc8b9518 /pdf-as-common/src/main/java/at/gv/egiz/pdfas
parenta2b5bfc1203dfe53de937820d8b8dc59afbf56c3 (diff)
downloadpdf-as-4-af2d6dad0711f95c280621b94f7ca3da8f91632a.tar.gz
pdf-as-4-af2d6dad0711f95c280621b94f7ca3da8f91632a.tar.bz2
pdf-as-4-af2d6dad0711f95c280621b94f7ca3da8f91632a.zip
SOAP Bulk Request
Diffstat (limited to 'pdf-as-common/src/main/java/at/gv/egiz/pdfas')
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignRequest.java44
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignResponse.java41
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java6
3 files changed, 91 insertions, 0 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignRequest.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignRequest.java
new file mode 100644
index 00000000..c875171d
--- /dev/null
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignRequest.java
@@ -0,0 +1,44 @@
+package at.gv.egiz.pdfas.api.ws;
+
+import java.io.Serializable;
+
+import javax.xml.bind.annotation.XmlElement;
+
+public class PDFASSignRequest implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -5572093903422676582L;
+
+ String requestID;
+ byte[] inputData;
+ PDFASSignParameters parameters;
+
+ @XmlElement(required = true, nillable = false)
+ public String getRequestID() {
+ return requestID;
+ }
+
+ public void setRequestID(String requestID) {
+ this.requestID = requestID;
+ }
+
+ @XmlElement(required = true, nillable = false)
+ public byte[] getInputData() {
+ return inputData;
+ }
+
+ public void setInputData(byte[] inputData) {
+ this.inputData = inputData;
+ }
+
+ @XmlElement(required = true, nillable = false)
+ public PDFASSignParameters getParameters() {
+ return parameters;
+ }
+
+ public void setParameters(PDFASSignParameters parameters) {
+ this.parameters = parameters;
+ }
+}
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignResponse.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignResponse.java
new file mode 100644
index 00000000..a27d1afe
--- /dev/null
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignResponse.java
@@ -0,0 +1,41 @@
+package at.gv.egiz.pdfas.api.ws;
+
+import java.io.Serializable;
+
+import javax.xml.bind.annotation.XmlElement;
+
+public class PDFASSignResponse implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -6369697640117556071L;
+
+ String requestID;
+ String error;
+ byte[] signedPDF;
+
+ @XmlElement(required = true, nillable = false)
+ public String getRequestID() {
+ return requestID;
+ }
+ public void setRequestID(String requestID) {
+ this.requestID = requestID;
+ }
+
+ @XmlElement(required = false, nillable = false)
+ public byte[] getSignedPDF() {
+ return signedPDF;
+ }
+ public void setSignedPDF(byte[] signedPDF) {
+ this.signedPDF = signedPDF;
+ }
+
+ @XmlElement(required = false)
+ public String getError() {
+ return error;
+ }
+ public void setError(String error) {
+ this.error = error;
+ }
+}
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java
index aa37cf69..5d283cf7 100644
--- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java
@@ -11,4 +11,10 @@ import javax.jws.soap.SOAPBinding.Style;
public interface PDFASSigning {
@WebMethod(operationName = "sign")
public byte[] signPDFDokument(@WebParam(name = "pdfDocument")byte[] inputDocument, @WebParam(name = "parameters")PDFASSignParameters parameters);
+
+ @WebMethod(operationName = "signSingle")
+ public PDFASSignResponse signPDFDokument(@WebParam(name = "signRequest") PDFASSignRequest request);
+
+ @WebMethod(operationName = "signBulk")
+ public PDFASSignResponse[] signPDFDokument(@WebParam(name = "signRequests") PDFASSignRequest[] request);
}