aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2017-02-15 15:29:32 +0100
committerThomas Lenz <thomas.lenz@egiz.gv.at>2017-02-15 15:29:32 +0100
commit2507c718c0b0dddcd19edda38699f1f3c4d1c7df (patch)
treeef72de50da13b86a44bc3fea4711ddc3ecad3f28 /moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss
parent4a145778e78abb0f94f62a6aa5b5f7175357076a (diff)
downloadmoa-sig-2507c718c0b0dddcd19edda38699f1f3c4d1c7df.tar.gz
moa-sig-2507c718c0b0dddcd19edda38699f1f3c4d1c7df.tar.bz2
moa-sig-2507c718c0b0dddcd19edda38699f1f3c4d1c7df.zip
log error message if PAdES signature verification has an error
Diffstat (limited to 'moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss')
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/CMSSignatureVerificationInvoker.java4
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