aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/knowcenter
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-04-23 18:14:38 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-04-23 18:14:38 +0200
commitf6fa6299ab99f30d18ba9f1890bd8fa0c9ac29b6 (patch)
tree08f08b644fee18363fff9ef0d703f54067bdd1db /pdf-as-lib/src/main/java/at/knowcenter
parentfab73b839be7c1ae0e003954630f88262927d886 (diff)
downloadpdf-as-3-master.tar.gz
pdf-as-3-master.tar.bz2
pdf-as-3-master.zip
Verify wrongly marked old MOA SignaturesHEADmaster
Diffstat (limited to 'pdf-as-lib/src/main/java/at/knowcenter')
-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$