diff options
author | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2021-06-01 12:13:12 +0200 |
---|---|---|
committer | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2021-06-01 14:38:17 +0200 |
commit | 4566ef134c84c31b294ade015bc7e62b9c47ae79 (patch) | |
tree | a838565a81a6f13e5a34739d1ed96eadd89faba9 /pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws | |
parent | 90d2ec69b01a5622c462cde538e0c739322a81ba (diff) | |
parent | 1263be201c27b6e96cc9975a6dddd5a9f1306c77 (diff) | |
download | pdf-as-4-4566ef134c84c31b294ade015bc7e62b9c47ae79.tar.gz pdf-as-4-4566ef134c84c31b294ade015bc7e62b9c47ae79.tar.bz2 pdf-as-4-4566ef134c84c31b294ade015bc7e62b9c47ae79.zip |
Merge branch 'master'
# Conflicts:
# pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java
# pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/JSONAPIServlet.java
# pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASSigningImpl.java
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws')
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASSigningImpl.java | 5 | ||||
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASVerificationImpl.java | 2 |
2 files changed, 4 insertions, 3 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 ccbaf4fb..531abdf1 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 @@ -107,12 +107,13 @@ public class PDFASSigningImpl implements PDFASSigning { response = PdfAsHelper.synchronousServerSignature( request.getInputData(), request.getParameters(), request.getSignatureBlockParameters()); + VerifyResult verifyResult = null; if (request.getVerificationLevel() != null && request.getVerificationLevel().equals( VerificationLevel.FULL_CERT_PATH)) { List<VerifyResult> verResults = PdfAsHelper - .synchornousVerify( + .synchronousVerify( response.getSignedPDF(), -1, SignatureVerificationLevel.FULL_VERIFICATION, @@ -125,7 +126,7 @@ public class PDFASSigningImpl implements PDFASSigning { verifyResult = verResults.get(verResults.size() - 1); } else { List<VerifyResult> verResults = PdfAsHelper - .synchornousVerify( + .synchronousVerify( response.getSignedPDF(), -1, SignatureVerificationLevel.INTEGRITY_ONLY_VERIFICATION, diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASVerificationImpl.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASVerificationImpl.java index bfdc3bd3..b1bca4ba 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASVerificationImpl.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/ws/PDFASVerificationImpl.java @@ -71,7 +71,7 @@ public class PDFASVerificationImpl implements PDFASVerification { statisticEvent.setProfileId(null); statisticEvent.setDevice(request.getVerificationLevel().toString()); - List<VerifyResult> results = PdfAsHelper.synchornousVerify( + List<VerifyResult> results = PdfAsHelper.synchronousVerify( request.getInputData(), sigIdx, lvl, preProcessor); for(int i = 0; i < results.size(); i++) { |