diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-05-06 13:26:24 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-05-06 13:26:24 +0200 |
commit | 83ce097056ba90a2685fddaf384655cae39bd66b (patch) | |
tree | 47c522cb40594408609568dd79a4cc12e9f5955e /pdf-as-common/src/main/java/at/gv | |
parent | 98a8921b697e2b03c3f1a873ec1dadd02f954aa6 (diff) | |
download | pdf-as-4-83ce097056ba90a2685fddaf384655cae39bd66b.tar.gz pdf-as-4-83ce097056ba90a2685fddaf384655cae39bd66b.tar.bz2 pdf-as-4-83ce097056ba90a2685fddaf384655cae39bd66b.zip |
SOAP interface to common library
Diffstat (limited to 'pdf-as-common/src/main/java/at/gv')
-rw-r--r-- | pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignParameters.java | 55 | ||||
-rw-r--r-- | pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java | 14 |
2 files changed, 69 insertions, 0 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignParameters.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignParameters.java new file mode 100644 index 00000000..070ca473 --- /dev/null +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignParameters.java @@ -0,0 +1,55 @@ +package at.gv.egiz.pdfas.api.ws; + +import java.io.Serializable; + +import javax.xml.bind.annotation.XmlElement; + +public class PDFASSignParameters implements Serializable { + + /** + * + */ + private static final long serialVersionUID = -2375108993871456465L; + + public enum Connector { + JKS, + MOA + } + + + Connector connector; + + + String position; + + + String profile; + + @XmlElement(required = true, nillable = false) + public Connector getConnector() { + return connector; + } + + public void setConnector(Connector connector) { + this.connector = connector; + } + + @XmlElement(required = false, nillable = true) + public String getPosition() { + return position; + } + public void setPosition(String position) { + this.position = position; + } + + @XmlElement(required = false, nillable = true) + public String getProfile() { + return profile; + } + public void setProfile(String profile) { + this.profile = profile; + } + + + +} 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 new file mode 100644 index 00000000..aa37cf69 --- /dev/null +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSigning.java @@ -0,0 +1,14 @@ +package at.gv.egiz.pdfas.api.ws; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.jws.soap.SOAPBinding.Style; + +@WebService +@SOAPBinding(style = Style.RPC) +public interface PDFASSigning { + @WebMethod(operationName = "sign") + public byte[] signPDFDokument(@WebParam(name = "pdfDocument")byte[] inputDocument, @WebParam(name = "parameters")PDFASSignParameters parameters); +} |