aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-04-23 16:55:48 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-04-23 16:55:48 +0200
commit6273b16fa6d462a82467de74ab52140b9e8ee763 (patch)
tree61668d8d7e7dc75156dbb8172e1c3114cf6837b3 /pdf-as-lib
parent30a300eda5fbd58c2f2dcb31bf7192ca73183677 (diff)
downloadpdf-as-3-6273b16fa6d462a82467de74ab52140b9e8ee763.tar.gz
pdf-as-3-6273b16fa6d462a82467de74ab52140b9e8ee763.tar.bz2
pdf-as-3-6273b16fa6d462a82467de74ab52140b9e8ee763.zip
b64 PEM encoding
Diffstat (limited to 'pdf-as-lib')
-rw-r--r--pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java4
1 files 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(