From 06a6b71fffbda1f631b5123d444cb724ffc57054 Mon Sep 17 00:00:00 2001 From: ferbas Date: Tue, 27 Oct 2009 11:07:20 +0000 Subject: depracated: parameterized codinghelper with hash method git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@360 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../knowcenter/wag/egov/egiz/sig/connectors/MOAConnector.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/MOAConnector.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/MOAConnector.java index ceeab1b..7406ccd 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/MOAConnector.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/MOAConnector.java @@ -447,7 +447,7 @@ public class MOAConnector implements Connector verify_req_str = verify_req_str.replaceFirst("CertAlgReplace", cert_alg); verify_req_str = verify_req_str.replaceFirst("TemplateSignedPropertiesReplace", sig_prop_str); - byte[] sig_prop_code = CodingHelper.buildDigest(sig_prop_str.getBytes("UTF-8")); // added + byte[] sig_prop_code = CodingHelper.buildDigest(sig_prop_str.getBytes("UTF-8"), "sha1"); // added // the // ("UTF-8") // encoding @@ -464,7 +464,7 @@ public class MOAConnector implements Connector verify_req_str = verify_req_str.replaceFirst("SignatureValueReplace", sigObject.getSignationValue()); verify_req_str = verify_req_str.replaceFirst("X509CertificateReplace", x509Certificate); byte[] data_value = normalizedText.getBytes("UTF-8"); - byte[] data_value_hash = CodingHelper.buildDigest(data_value); + byte[] data_value_hash = CodingHelper.buildDigest(data_value, "sha1"); // byte[] data_value_hash = // CodingHelper.buildDigest(normalizedText.getBytes()); String object_data_hash = CodingHelper.encodeBase64(data_value_hash); @@ -836,10 +836,10 @@ public class MOAConnector implements Connector ByteArrayInputStream bais = new ByteArrayInputStream(requestString.getBytes("UTF-8")); Document xmlRequest = builder.parse(bais); - // Call öffnen + // Call �ffnen Call call = null; - // Neues BodyElement anlegen und mit dem DOM-Baum füllen + // Neues BodyElement anlegen und mit dem DOM-Baum f�llen SOAPBodyElement body = new SOAPBodyElement(xmlRequest.getDocumentElement()); SOAPBodyElement[] params = new SOAPBodyElement[] { body }; @@ -848,7 +848,7 @@ public class MOAConnector implements Connector call = service.createCall(); call.setTargetEndpointAddress(endpointURL); - // Call auslösen und die Antworten speichern + // Call ausl�sen und die Antworten speichern if (logger_.isInfoEnabled()) { logger_.info("Calling MOA:" + endpointURL); -- cgit v1.2.3