aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at/gv/egiz/pdfas
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-11-04 10:42:01 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-11-04 10:42:01 +0100
commit290256144963c33c55fc5fa99cb5c9a75a7b1f9d (patch)
tree3cf010e119569cf963f2dfbe7b56c890e6d7fba3 /pdf-as-web/src/main/java/at/gv/egiz/pdfas
parent4ee4d80447ac654848d2c1d77deafde771bf4177 (diff)
downloadpdf-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.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);
}