From f6fa6299ab99f30d18ba9f1890bd8fa0c9ac29b6 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 23 Apr 2015 18:14:38 +0200 Subject: Verify wrongly marked old MOA Signatures --- .../egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pdf-as-lib') diff --git a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java index dd13908..87b6fed 100644 --- a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java +++ b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java @@ -199,11 +199,12 @@ public class MOASoapWithAttachmentConnector implements Connector { SignatureResponse signature_response = analyzeVerifyResponse(response_properties); + log.debug("Signature Check Code: " + signature_response.getSignatureCheckCode()); if("2".equals(signature_response.getSignatureCheckCode()) && - so.id != null && so.id.startsWith(DetachedLocRefMOAIdFormatter.SIG_ID_PREFIX)) { + so.id != null && so.id.startsWith(DetachedLocRefMOAIdFormatter.SIG_ID_X14_PREFIX)) { log.debug("Retrying using X14 for MOA"); - - so.id = DetachedLocRefMOAIdFormatter.SIG_ID_X14_PREFIX; + dsig.setXmlDsig(null); + so.id = DetachedLocRefMOAIdFormatter.SIG_ID_PREFIX; verify_request_xml = prepareVerifyRequest(data, so, dsig); log.debug("verify_request_xml = " + verify_request_xml); //$NON-NLS-1$ -- cgit v1.2.3