From 5c0ba79917464580478b59c7b7db36fbf44e0ae1 Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 29 Nov 2010 14:23:28 +0000 Subject: added exception result for verify git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@628 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main') 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; + } } -- cgit v1.2.3