aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-11-29 14:23:28 +0000
committerpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-11-29 14:23:28 +0000
commit5c0ba79917464580478b59c7b7db36fbf44e0ae1 (patch)
tree533eb2ccd39eed9587d69c7587355282545bf855
parent9763138b9051d815e53bb9ed8cfe69c8f85e70b5 (diff)
downloadpdf-as-3-5c0ba79917464580478b59c7b7db36fbf44e0ae1.tar.gz
pdf-as-3-5c0ba79917464580478b59c7b7db36fbf44e0ae1.tar.bz2
pdf-as-3-5c0ba79917464580478b59c7b7db36fbf44e0ae1.zip
added exception result for verify
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@628 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-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;
+ }
}