aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASSigningImpl.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASSigningImpl.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASSigningImpl.java
index 7b0bfaed..f850c5ae 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASSigningImpl.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASSigningImpl.java
@@ -118,11 +118,11 @@ public class PDFASSigningImpl implements PDFASSigning {
SignatureVerificationLevel.FULL_VERIFICATION,
preProcessor);
- if (verResults.size() != 1) {
+ if (verResults.size() < 1) {
throw new WebServiceException(
- "Document verification failed!");
+ "Document verification failed! " + verResults.size());
}
- verifyResult = verResults.get(0);
+ verifyResult = verResults.get(verResults.size() - 1);
} else {
List<VerifyResult> verResults = PdfAsHelper
.synchornousVerify(
@@ -133,7 +133,7 @@ public class PDFASSigningImpl implements PDFASSigning {
if (verResults.size() < 1) {
throw new WebServiceException(
- "Document verification failed!");
+ "Document verification failed! " + verResults.size());
}
verifyResult = verResults.get(verResults.size() - 1);
}