summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-12-12 13:54:18 +0100
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-12-12 13:54:18 +0100
commit778707efcd48b17c75a2e0f58b937d4d1db43c3e (patch)
tree12d3922d0f55a52e00d3a7d28221b8369c9e7e83 /pdf-over-gui/src/main/java/at/asit
parent6e191bfa1051d5eacd02b722028f09f347e91415 (diff)
downloadpdf-over-778707efcd48b17c75a2e0f58b937d4d1db43c3e.tar.gz
pdf-over-778707efcd48b17c75a2e0f58b937d4d1db43c3e.tar.bz2
pdf-over-778707efcd48b17c75a2e0f58b937d4d1db43c3e.zip
Logging - trace requests/responses
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java6
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java2
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java2
3 files changed, 6 insertions, 4 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java
index 828a23ac..c97a59c3 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java
@@ -63,7 +63,7 @@ public class MobileBKUConnector implements BkuSlConnector {
String responseData = handler.postSLRequest(this.state.getURL(), request);
// Now we have received some data lets check it:
- log.debug("Response from mobile BKU: " + responseData); //$NON-NLS-1$
+ log.trace("Response from mobile BKU: " + responseData); //$NON-NLS-1$
handler.handleSLRequestResponse(responseData);
} catch (Exception ex) {
@@ -86,7 +86,7 @@ public class MobileBKUConnector implements BkuSlConnector {
String responseData = handler.postCredentials();
// Now we have received some data lets check it:
- log.debug("Response from mobile BKU: " + responseData); //$NON-NLS-1$
+ log.trace("Response from mobile BKU: " + responseData); //$NON-NLS-1$
handler.handleCredentialsResponse(responseData);
} catch (Exception ex) {
@@ -117,7 +117,7 @@ public class MobileBKUConnector implements BkuSlConnector {
String responseData = handler.postTAN();
// Now we have received some data lets check it:
- log.debug("Response from mobile BKU: " + responseData); //$NON-NLS-1$
+ log.trace("Response from mobile BKU: " + responseData); //$NON-NLS-1$
handler.handleTANResponse(responseData);
} catch (Exception ex) {
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java
index 3af0bd1d..f19c19bb 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java
@@ -120,6 +120,7 @@ public class ATrustHandler extends MobileBKUHandler {
if (responseData.contains("signature.aspx?sid=")) { //$NON-NLS-1$
// credentials ok! TAN entry
+ log.debug("Credentials accepted - TAN required"); //$NON-NLS-1$
sessionID = MobileBKUHelper.extractTag(responseData, "signature.aspx?sid=", "\""); //$NON-NLS-1$ //$NON-NLS-2$
viewState = MobileBKUHelper.extractTag(responseData, "id=\"__VIEWSTATE\" value=\"", "\""); //$NON-NLS-1$ //$NON-NLS-2$
eventValidation = MobileBKUHelper.extractTag(responseData, "id=\"__EVENTVALIDATION\" value=\"", "\""); //$NON-NLS-1$ //$NON-NLS-2$
@@ -128,6 +129,7 @@ public class ATrustHandler extends MobileBKUHandler {
MobileBKUHelper.extractTag(responseData, "ShowSigobj.aspx", "'"); //$NON-NLS-1$//$NON-NLS-2$
} else if (responseData.contains("sl:InfoboxReadResponse")) { //$NON-NLS-1$
// credentials ok! InfoboxReadResponse
+ log.debug("Credentials accepted - Response given"); //$NON-NLS-1$
getSigningState().setSignatureResponse(
new SLResponse(responseData, getStatus().getServer(), null, null));
return;
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java
index 3f2f83ee..4644002e 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java
@@ -96,7 +96,7 @@ public abstract class MobileBKUHandler {
sl_request = request.getRequest();
post.addParameter("XMLRequest", sl_request); //$NON-NLS-1$
}
- //log.debug("SL Request: " + sl_request); //$NON-NLS-1$
+ log.trace("SL Request: " + sl_request); //$NON-NLS-1$
getState().getStatus().setBaseURL(
MobileBKUHelper.stripQueryString(mobileBKUUrl));