aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src/main/java/at')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASSigningImpl.java4
1 files changed, 2 insertions, 2 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 e3b57b28..7b0bfaed 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
@@ -131,11 +131,11 @@ public class PDFASSigningImpl implements PDFASSigning {
SignatureVerificationLevel.INTEGRITY_ONLY_VERIFICATION,
preProcessor);
- if (verResults.size() != 1) {
+ if (verResults.size() < 1) {
throw new WebServiceException(
"Document verification failed!");
}
- verifyResult = verResults.get(0);
+ verifyResult = verResults.get(verResults.size() - 1);
}
if(verifyResult.getValueCheckCode().getCode() == 0) {