aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-11-29 14:19:47 +0000
committerpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-11-29 14:19:47 +0000
commit04841f42f9e22e12560810a4141ac1fe387faa0f (patch)
tree32c5796381d3772c60b9196f945945e3a1ba2be2 /src/main/java
parentd5c7f5c7e68c789e8a6a51a51963e6ce16298706 (diff)
downloadpdf-as-3-04841f42f9e22e12560810a4141ac1fe387faa0f.tar.gz
pdf-as-3-04841f42f9e22e12560810a4141ac1fe387faa0f.tar.bz2
pdf-as-3-04841f42f9e22e12560810a4141ac1fe387faa0f.zip
added exception result for verify
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@620 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/api/verify/VerifyResult.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyResult.java b/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyResult.java
index 9455a2d..bd62d4a 100644
--- a/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyResult.java
+++ b/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyResult.java
@@ -5,6 +5,7 @@ import java.util.List;
import at.gv.egiz.pdfas.api.analyze.NonTextObjectInfo;
import at.gv.egiz.pdfas.api.commons.SignatureInformation;
+import at.gv.egiz.pdfas.api.exceptions.PdfAsException;
/**
* Encapsulates the data of a verification of one signature.
@@ -13,6 +14,18 @@ import at.gv.egiz.pdfas.api.commons.SignatureInformation;
*/
public interface VerifyResult extends SignatureInformation
{
+ /**
+ * Returns if the verification was possible or could not even be startet. see {@link #getVerificationException()} for details.
+ * @return
+ */
+ public boolean isVerificationDone();
+
+ /**
+ * Returns a verification exception if any. Shows that the verification could not be startet. See {@link #isVerificationDone()}.
+ * @return
+ */
+ public PdfAsException getVerificationException();
+
/**
* Returns the result of the certificate check.
*