diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2017-02-15 15:29:32 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2017-02-15 15:29:32 +0100 |
commit | 2507c718c0b0dddcd19edda38699f1f3c4d1c7df (patch) | |
tree | ef72de50da13b86a44bc3fea4711ddc3ecad3f28 | |
parent | 4a145778e78abb0f94f62a6aa5b5f7175357076a (diff) | |
download | moa-sig-2507c718c0b0dddcd19edda38699f1f3c4d1c7df.tar.gz moa-sig-2507c718c0b0dddcd19edda38699f1f3c4d1c7df.tar.bz2 moa-sig-2507c718c0b0dddcd19edda38699f1f3c4d1c7df.zip |
log error message if PAdES signature verification has an error
-rw-r--r-- | moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/CMSSignatureVerificationInvoker.java | 4 |
1 files changed, 4 insertions, 0 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 c0beced..6355f04 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 @@ -33,6 +33,7 @@ import java.util.Date; import java.util.Iterator; import java.util.List; +import at.gv.egovernment.moa.sig.tsl.utils.MiscUtil; import at.gv.egovernment.moa.spss.MOAApplicationException; import at.gv.egovernment.moa.spss.MOAException; import at.gv.egovernment.moa.spss.api.cmsverify.CMSContent; @@ -359,6 +360,9 @@ public class CMSSignatureVerificationInvoker { cmsResult = (PDFSignatureVerificationResult) resultObject; } + if (MiscUtil.isNotEmpty(cmsResult.getError())) + Logger.info("Signature validation stopped with an error: " + cmsResult.getError()); + String issuerCountryCode = null; // QC/SSCD check |