From 6273b16fa6d462a82467de74ab52140b9e8ee763 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 23 Apr 2015 16:55:48 +0200 Subject: b64 PEM encoding --- .../egov/egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 ff27a64..99b39f7 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 @@ -360,7 +360,7 @@ public class MOASoapWithAttachmentConnector implements Connector { byte[] data_value_hash = CodingHelper.buildDigest( data.getDataSource(), algSuite.getDataDigestMethod()); String object_data_hash = CodingHelper - .encodeBase64(data_value_hash); + .encodeBase64PEM(data_value_hash); verify_xml = verify_xml.replaceFirst( TemplateReplaces.DIGEST_VALUE_SIGNED_DATA_REPLACE, @@ -427,7 +427,7 @@ public class MOASoapWithAttachmentConnector implements Connector { byte[] sig_prop_code = CodingHelper.buildDigest( bytes_to_be_hashed, algSuite.getPropertiesDigestMethod()); - String sig_prop_hash = CodingHelper.encodeBase64(sig_prop_code); + String sig_prop_hash = CodingHelper.encodeBase64PEM(sig_prop_code); verify_xml = verify_xml .replaceFirst( -- cgit v1.2.3