aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-10-27 11:07:20 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-10-27 11:07:20 +0000
commit06a6b71fffbda1f631b5123d444cb724ffc57054 (patch)
tree478af5e519df86ecc912e9c89df0e753667ee237 /src/main/java/at/knowcenter/wag
parent11b7e91198296f9075a6eaebd0aec5ba83a3294a (diff)
downloadpdf-as-3-06a6b71fffbda1f631b5123d444cb724ffc57054.tar.gz
pdf-as-3-06a6b71fffbda1f631b5123d444cb724ffc57054.tar.bz2
pdf-as-3-06a6b71fffbda1f631b5123d444cb724ffc57054.zip
depracated: parameterized codinghelper with hash method
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@360 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/knowcenter/wag')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/MOAConnector.java10
1 files changed, 5 insertions, 5 deletions
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);