aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at/gv
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-07-26 12:08:33 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-08-17 16:45:24 +0200
commita7945fff6ca14d35ac75039712736dddc6d48e90 (patch)
tree40e0f4b9fa5e5d46dc8a89547d85dd3398c70624 /pdf-as-web/src/main/java/at/gv
parent493b539067969be381da8bcb487732b156afe439 (diff)
downloadpdf-as-4-a7945fff6ca14d35ac75039712736dddc6d48e90.tar.gz
pdf-as-4-a7945fff6ca14d35ac75039712736dddc6d48e90.tar.bz2
pdf-as-4-a7945fff6ca14d35ac75039712736dddc6d48e90.zip
fixed SOAP verification size for mulitple signatures
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv')
-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) {