aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java b/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java
index e078e59..b640bc7 100644
--- a/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java
+++ b/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java
@@ -11,6 +11,7 @@ import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import at.gv.egiz.pdfas.api.exceptions.PdfAsException;
import at.gv.egiz.pdfas.api.verify.SignatureCheck;
import at.gv.egiz.pdfas.api.verify.VerifyResult;
import at.gv.egiz.pdfas.impl.api.commons.SignatureInformationAdapter;
@@ -37,6 +38,7 @@ public class VerifyResultAdapter extends SignatureInformationAdapter implements
protected Date vTime = null;
private String timestamp;
+
/**
* Constructor.
@@ -159,5 +161,13 @@ public class VerifyResultAdapter extends SignatureInformationAdapter implements
public boolean isPublicAuthority() {
return this.sigRes.isPublicAuthority();
}
+
+ public PdfAsException getVerificationException() {
+ return this.sigRes.getVerificationImpossibleEx();
+ }
+
+ public boolean isVerificationDone() {
+ return this.sigRes.getVerificationImpossibleEx() == null;
+ }
}