From 778707efcd48b17c75a2e0f58b937d4d1db43c3e Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Fri, 12 Dec 2014 13:54:18 +0100 Subject: Logging - trace requests/responses --- .../src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java | 6 +++--- .../src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java | 2 ++ .../main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'pdf-over-gui/src/main/java') 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)); -- cgit v1.2.3