aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2017-05-08 15:17:43 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2017-05-08 15:17:43 +0200
commite850c58c3b7b99c78523b01cecd5f5b7edf9a540 (patch)
tree1c75815aeb02666e59be9ded6100ec20dd1a6b9d /moaSig/moa-sig-lib/src/main/java/at/gv/egovernment
parent45a6390c11a307a019c8eacb2ef4c25ec6045ba3 (diff)
downloadmoa-sig-e850c58c3b7b99c78523b01cecd5f5b7edf9a540.tar.gz
moa-sig-e850c58c3b7b99c78523b01cecd5f5b7edf9a540.tar.bz2
moa-sig-e850c58c3b7b99c78523b01cecd5f5b7edf9a540.zip
update logging in extended PAdES verification code
Diffstat (limited to 'moaSig/moa-sig-lib/src/main/java/at/gv/egovernment')
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/CMSSignatureVerificationInvoker.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/CMSSignatureVerificationInvoker.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/CMSSignatureVerificationInvoker.java
index 34d6a22..188e8e2 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/CMSSignatureVerificationInvoker.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/CMSSignatureVerificationInvoker.java
@@ -341,7 +341,7 @@ public class CMSSignatureVerificationInvoker {
ExtendedPDFSignatureVerificationResult result = (ExtendedPDFSignatureVerificationResult) resultObject;
cmsResult = result.getPDFSignatureVerificationResult();
adesResults = AdESResultUtils.getAdESResult(result.getFormVerificationResult());
-
+
if (adesResults != null) {
Iterator adesIterator = adesResults.iterator();
while (adesIterator.hasNext()) {
@@ -352,7 +352,12 @@ public class CMSSignatureVerificationInvoker {
try {
//Logger.info("Extended Validation Report: " + result.getName());
Logger.info("Extended Validation Code: " + result.getResultCode().toString());
- Logger.info("Extended Validation Info: " + result.getInfo());
+ if (result.getDetailedExtendedReport() != null)
+ Logger.info("Extended Validation Info: " + result.getDetailedExtendedReport().getMessage());
+ else
+ Logger.info("Extended Validation Info: " + result.getInfo());
+
+ Logger.debug("Full extended Validation Infos: " + result.getInfo());
extCheckResult = AdESResultUtils.getExtendedResult(result.getResultCode());
} catch (NullPointerException e) {