aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-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);