aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-common/src/main/java/at/gv/egiz')
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerification.java17
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyRequest.java56
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyResponse.java27
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyResult.java126
4 files changed, 226 insertions, 0 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerification.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerification.java
new file mode 100644
index 00000000..edc6f22e
--- /dev/null
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerification.java
@@ -0,0 +1,17 @@
+package at.gv.egiz.pdfas.api.ws;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+
+@WebService
+@SOAPBinding(style = Style.RPC)
+public interface PDFASVerification {
+ @WebMethod(operationName = "verify")
+ @WebResult(name="verifyResponse")
+ public PDFASVerifyResponse verifyPDFDokument(@WebParam(name = "verifyRequest") PDFASVerifyRequest request);
+
+}
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyRequest.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyRequest.java
new file mode 100644
index 00000000..7167e921
--- /dev/null
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyRequest.java
@@ -0,0 +1,56 @@
+package at.gv.egiz.pdfas.api.ws;
+
+import java.io.Serializable;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+@XmlType(name="VerifyRequest")
+public class PDFASVerifyRequest implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 8159503247524085992L;
+
+ String requestID;
+ byte[] inputData;
+ VerificationLevel verificationLevel;
+ Integer sigIdx;
+
+ @XmlElement(required = true, nillable = false, name="requestID")
+ public String getRequestID() {
+ return requestID;
+ }
+
+ public void setRequestID(String requestID) {
+ this.requestID = requestID;
+ }
+
+ @XmlElement(required = false, nillable = true, name="verificationLevel")
+ public VerificationLevel getVerificationLevel() {
+ return verificationLevel;
+ }
+
+ public void setVerificationLevel(VerificationLevel verificationLevel) {
+ this.verificationLevel = verificationLevel;
+ }
+
+ @XmlElement(required = true, nillable = false, name="inputData")
+ public byte[] getInputData() {
+ return inputData;
+ }
+
+ public void setInputData(byte[] inputData) {
+ this.inputData = inputData;
+ }
+
+ @XmlElement(required = false, nillable = true, name="signatureIndex")
+ public Integer getSignatureIndex() {
+ return sigIdx;
+ }
+
+ public void setSignatureIndex(Integer sigIdx) {
+ this.sigIdx = sigIdx;
+ }
+}
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyResponse.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyResponse.java
new file mode 100644
index 00000000..defb05f5
--- /dev/null
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyResponse.java
@@ -0,0 +1,27 @@
+package at.gv.egiz.pdfas.api.ws;
+
+import java.io.Serializable;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+@XmlType(name="VerifyResponse")
+public class PDFASVerifyResponse implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -1984406533559692943L;
+
+ List<PDFASVerifyResult> verifyResults;
+
+ @XmlElement(required = true, nillable = false, name="verifyResults")
+ public List<PDFASVerifyResult> getVerifyResults() {
+ return verifyResults;
+ }
+
+ public void setVerifyResults(List<PDFASVerifyResult> verifyResults) {
+ this.verifyResults = verifyResults;
+ }
+}
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyResult.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyResult.java
new file mode 100644
index 00000000..6744af4a
--- /dev/null
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/PDFASVerifyResult.java
@@ -0,0 +1,126 @@
+package at.gv.egiz.pdfas.api.ws;
+
+import java.io.Serializable;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+@XmlType(name="VerifyResult")
+public class PDFASVerifyResult implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -1984406533559692943L;
+
+ String requestID;
+ int signatureIndex;
+ boolean processed;
+ String signedBy;
+ int certificateCode;
+ String certificateMessage;
+ int valueCode;
+ String valueMessage;
+ String error;
+ String certificate;
+ String signedData;
+
+ @XmlElement(required = true, nillable = false, name="requestID")
+ public String getRequestID() {
+ return requestID;
+ }
+
+ public void setRequestID(String requestID) {
+ this.requestID = requestID;
+ }
+
+ @XmlElement(required = true, nillable = false, name="processed")
+ public boolean getProcessed() {
+ return processed;
+ }
+
+ public void setProcessed(boolean processed) {
+ this.processed = processed;
+ }
+
+ @XmlElement(required = true, nillable = false, name="signatureIndex")
+ public int getSignatureIndex() {
+ return signatureIndex;
+ }
+
+ public void setSignatureIndex(int signatureIndex) {
+ this.signatureIndex = signatureIndex;
+ }
+
+ @XmlElement(required = true, nillable = false, name="signedBy")
+ public String getSignedBy() {
+ return signedBy;
+ }
+
+ public void setSignedBy(String signedBy) {
+ this.signedBy = signedBy;
+ }
+
+ @XmlElement(required = true, nillable = false, name="certificateCode")
+ public int getCertificateCode() {
+ return certificateCode;
+ }
+
+ public void setCertificateCode(int certificateCode) {
+ this.certificateCode = certificateCode;
+ }
+
+ @XmlElement(required = true, nillable = false, name="certificateMessage")
+ public String getCertificateMessage() {
+ return certificateMessage;
+ }
+
+ public void setCertificateMessage(String certificateMessage) {
+ this.certificateMessage = certificateMessage;
+ }
+
+ @XmlElement(required = true, nillable = false, name="valueCode")
+ public int getValueCode() {
+ return valueCode;
+ }
+
+ public void setValueCode(int valueCode) {
+ this.valueCode = valueCode;
+ }
+
+ @XmlElement(required = true, nillable = false, name="valueMessage")
+ public String getValueMessage() {
+ return valueMessage;
+ }
+
+ public void setValueMessage(String valueMessage) {
+ this.valueMessage = valueMessage;
+ }
+
+ @XmlElement(required = true, nillable = false, name="error")
+ public String getError() {
+ return error;
+ }
+
+ public void setError(String error) {
+ this.error = error;
+ }
+
+ @XmlElement(required = true, nillable = false, name="certificate")
+ public String getCertificate() {
+ return certificate;
+ }
+
+ public void setCertificate(String certificate) {
+ this.certificate = certificate;
+ }
+
+ @XmlElement(required = true, nillable = false, name="signedData")
+ public String getSignedData() {
+ return signedData;
+ }
+
+ public void setSignedData(String signedData) {
+ this.signedData = signedData;
+ }
+}