From a38d6891c9c08ddaa2818515716c28d40d515997 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 9 Oct 2014 13:42:43 +0200 Subject: WS definitons for enums updated --- .../src/main/java/at/gv/egiz/pdfas/api/ws/PDFASSignParameters.java | 6 ++++++ .../src/main/java/at/gv/egiz/pdfas/api/ws/VerificationLevel.java | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'pdf-as-common/src') 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 index a309b251..9b295ff5 100644 --- 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 @@ -26,6 +26,7 @@ package at.gv.egiz.pdfas.api.ws; import java.io.Serializable; import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; @XmlType(name="SignParameters") @@ -38,10 +39,15 @@ public class PDFASSignParameters implements Serializable { @XmlType(name="Connector") public enum Connector { + @XmlEnumValue("jks") JKS("jks"), + @XmlEnumValue("moa") MOA("moa"), + @XmlEnumValue("bku") BKU("bku"), + @XmlEnumValue("mobilebku") MOBILEBKU("mobilebku"), + @XmlEnumValue("onlinebku") ONLINEBKU("onlinebku"); diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/VerificationLevel.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/VerificationLevel.java index ca4d893e..6410d269 100644 --- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/VerificationLevel.java +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/api/ws/VerificationLevel.java @@ -1,11 +1,13 @@ package at.gv.egiz.pdfas.api.ws; +import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; @XmlType(name = "VerificationLevel") public enum VerificationLevel { - INTEGRITY_ONLY("intOnly"), FULL_CERT_PATH("full"); + @XmlEnumValue("intOnly") INTEGRITY_ONLY("intOnly"), + @XmlEnumValue("full") FULL_CERT_PATH("full"); private final String name; -- cgit v1.2.3