aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag/egov/egiz
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/knowcenter/wag/egov/egiz')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/DetachedMultipartBKUConnector.java54
1 files changed, 22 insertions, 32 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/DetachedMultipartBKUConnector.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/DetachedMultipartBKUConnector.java
index b30c9e2..6c30655 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/DetachedMultipartBKUConnector.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/DetachedMultipartBKUConnector.java
@@ -124,17 +124,17 @@ public class DetachedMultipartBKUConnector
String response_string = response_properties.getProperty(BKUPostConnection.RESPONSE_STRING_KEY);
// TODO debug
- try
- {
- FileOutputStream fos = new FileOutputStream("C:\\wprinz\\Filer\\egiz2\\sign_response.utf8.xml"); //$NON-NLS-1$
- OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); //$NON-NLS-1$
- osw.write(response_string);
- osw.close();
- }
- catch (Exception e)
- {
- log.error(e);
- }
+// try
+// {
+// FileOutputStream fos = new FileOutputStream("C:\\wprinz\\Filer\\egiz2\\sign_response.utf8.xml"); //$NON-NLS-1$
+// OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); //$NON-NLS-1$
+// osw.write(response_string);
+// osw.close();
+// }
+// catch (Exception e)
+// {
+// log.error(e);
+// }
checkResponseForError(response_string);
@@ -541,17 +541,6 @@ public class DetachedMultipartBKUConnector
String url = this.environment.getSignURL();
Properties response_properties = sendRequest(url, sign_request_xml, data);
- try
- {
- FileOutputStream fos = new FileOutputStream("C:\\wprinz\\Filer\\egiz2\\sign_response.utf8.xml"); //$NON-NLS-1$
- fos.write(response_properties.getProperty("response_string").getBytes("UTF-8")); //$NON-NLS-1$ //$NON-NLS-2$
- fos.close();
- }
- catch (Exception e)
- {
- log.error(e);
- }
-
SignSignatureObject sso = analyzeSignResponse(response_properties);
// TODO this could be made more generic
@@ -579,16 +568,17 @@ public class DetachedMultipartBKUConnector
String verify_request_xml = prepareVerifyRequestDetached(data, so);
log.debug("verify_request_xml = " + verify_request_xml); //$NON-NLS-1$
- try
- {
- FileOutputStream fos = new FileOutputStream("C:\\wprinz\\Filer\\egiz2\\verify_request.utf8.xml"); //$NON-NLS-1$
- fos.write(verify_request_xml.getBytes("UTF-8")); //$NON-NLS-1$
- fos.close();
- }
- catch (Exception e)
- {
- log.error(e);
- }
+ // TODO debug
+// try
+// {
+// FileOutputStream fos = new FileOutputStream("C:\\wprinz\\Filer\\egiz2\\verify_request.utf8.xml"); //$NON-NLS-1$
+// fos.write(verify_request_xml.getBytes("UTF-8")); //$NON-NLS-1$
+// fos.close();
+// }
+// catch (Exception e)
+// {
+// log.error(e);
+// }
String url = this.environment.getVerifyURL();
Properties response_properties = sendRequest(url, verify_request_xml, data);