From 43de9979eef1ea903e95b4a2911a9bf55f229ae3 Mon Sep 17 00:00:00 2001 From: ferbas Date: Tue, 27 Oct 2009 10:58:10 +0000 Subject: depracated: parameterized codinghelper with hash method git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@357 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../at/knowcenter/wag/egov/egiz/sig/connectors/BKUConnector.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUConnector.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUConnector.java index c9e3fce..8f75d03 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUConnector.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUConnector.java @@ -394,7 +394,7 @@ public class BKUConnector implements LocalConnector ver_temp_str = ver_temp_str.replaceFirst("CertAlgReplace", cert_alg); ver_temp_str = ver_temp_str.replaceFirst("TemplateQualifyingPropertiesReplace", sig_prop_str); - byte[] sig_prop_code = CodingHelper.buildDigest(sig_prop_str.getBytes("UTF-8")); + byte[] sig_prop_code = CodingHelper.buildDigest(sig_prop_str.getBytes("UTF-8"), "sha1"); // TODO hotfix - already deprecated if (neue_bku) @@ -416,7 +416,7 @@ public class BKUConnector implements LocalConnector logger_.debug("\n--------------------- ETSI properties string to be hashed: stop ---------------------"); final byte [] bytes_to_be_hashed = string_to_be_hashed.getBytes("UTF-8"); - sig_prop_code = CodingHelper.buildDigest(bytes_to_be_hashed); + sig_prop_code = CodingHelper.buildDigest(bytes_to_be_hashed, "sha1"); } String sig_prop_hash = CodingHelper.encodeBase64(sig_prop_code); @@ -432,7 +432,7 @@ public class BKUConnector implements LocalConnector ver_temp_str = ver_temp_str.replaceFirst("SignatureValueReplace", sigObject.getSignationValue()); ver_temp_str = ver_temp_str.replaceFirst("X509CertificateReplace", x509_cert_string); byte[] data_value = normalizedText.getBytes("UTF-8"); - byte[] data_value_hash = CodingHelper.buildDigest(data_value); + byte[] data_value_hash = CodingHelper.buildDigest(data_value, "sha1"); String object_data_hash = CodingHelper.encodeBase64(data_value_hash); // String object_data = new String(data_value); if (logger_.isDebugEnabled()) -- cgit v1.2.3