aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java7
1 files changed, 4 insertions, 3 deletions
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$