diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2016-11-04 10:42:01 +0100 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2016-11-04 10:42:01 +0100 |
commit | 290256144963c33c55fc5fa99cb5c9a75a7b1f9d (patch) | |
tree | 3cf010e119569cf963f2dfbe7b56c890e6d7fba3 /pdf-as-web/src/main/java/at/gv/egiz/pdfas | |
parent | 4ee4d80447ac654848d2c1d77deafde771bf4177 (diff) | |
download | pdf-as-4-290256144963c33c55fc5fa99cb5c9a75a7b1f9d.tar.gz pdf-as-4-290256144963c33c55fc5fa99cb5c9a75a7b1f9d.tar.bz2 pdf-as-4-290256144963c33c55fc5fa99cb5c9a75a7b1f9d.zip |
Fixed web verification for multiple signatures
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas')
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASSigningImpl.java | 8 |
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); } |