diff options
author | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-10-27 10:58:10 +0000 |
---|---|---|
committer | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-10-27 10:58:10 +0000 |
commit | 43de9979eef1ea903e95b4a2911a9bf55f229ae3 (patch) | |
tree | b97f8d815de57decedba715f63de18239ac6f2a8 /src/main | |
parent | 540365f368537e31d19ba86e57dbdfd698df2d52 (diff) | |
download | pdf-as-3-43de9979eef1ea903e95b4a2911a9bf55f229ae3.tar.gz pdf-as-3-43de9979eef1ea903e95b4a2911a9bf55f229ae3.tar.bz2 pdf-as-3-43de9979eef1ea903e95b4a2911a9bf55f229ae3.zip |
depracated: parameterized codinghelper with hash method
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@357 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUConnector.java | 6 |
1 files 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())
|