From a7945fff6ca14d35ac75039712736dddc6d48e90 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 26 Jul 2016 12:08:33 +0200 Subject: fixed SOAP verification size for mulitple signatures --- .../src/main/java/at/gv/egiz/pdfas/web/ws/PDFASSigningImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas/web') 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) { -- cgit v1.2.3