diff options
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv')
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyResult.java | 14 | ||||
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java | 10 |
2 files changed, 23 insertions, 1 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyResult.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyResult.java index fb48e5e..52aa10f 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyResult.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyResult.java @@ -81,6 +81,13 @@ public interface VerifyResult extends SignatureInformation public boolean isQualifiedCertificate();
/**
+ * Returns the null if no secure signing devices was used, or "certificate" or "TSL" if a secure signing devices was used.
+ *
+ * @return Returns the null if no secure signing devices was used, or "certificate" or "TSL" if a secure signing devices was used.
+ */
+ public String getSecureSignatureCreationDevice();
+
+ /**
* Returns {@code true} if public authority is indicated.
* @return {@code true} if public authority.
*/
@@ -176,4 +183,11 @@ public interface VerifyResult extends SignatureInformation */
public XMLDsigData getReconstructedXMLDsig();
+ /**
+ * Returns the issuer country code.
+ *
+ * @return Returns the issuer country code.
+ */
+ public String getIssuerCountryCode();
+
}
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java index 09d247d..713a6dd 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java @@ -61,7 +61,6 @@ public class VerifyResultAdapter extends SignatureInformationAdapter implements private String timestamp;
private XMLDsigData xmlDsigData;
-
/**
* Constructor.
@@ -201,5 +200,14 @@ public class VerifyResultAdapter extends SignatureInformationAdapter implements public XMLDsigData getReconstructedXMLDsig() {
return this.xmlDsigData;
}
+
+
+ public String getSecureSignatureCreationDevice() {
+ return this.sigRes.getSecureSignatureCreationDevice();
+ }
+
+ public String getIssuerCountryCode() {
+ return this.sigRes.getIssuerCountryCode();
+ }
}
|