From 2f2529076a2bf119c5870362b06d3f9c5ea1663f Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Thu, 5 Mar 2015 17:10:55 +0100 Subject: Use BASE64 upload for a.sign BKU for now --- .../main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java index dd47fe9d..eaccae5d 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java @@ -123,7 +123,7 @@ public class LocalBKUState extends State { if (server == null) server = ""; //$NON-NLS-1$ else - if (server.contains("trustDeskbasic")) //$NON-NLS-1$ + if (server.contains("trustDeskbasic") || server.contains("asignSecurityLayer")) //$NON-NLS-1$ //$NON-NLS-2$ LocalBKUState.this.useBase64Request = true; userAgent = getResponseHeader(method, BKU_RESPONSE_HEADER_USERAGENT); @@ -131,6 +131,8 @@ public class LocalBKUState extends State { userAgent = ""; //$NON-NLS-1$ String signatureLayout = getResponseHeader(method, BKU_RESPONSE_HEADER_SIGNATURE_LAYOUT); + log.debug("Server - UA: " + server + " - " + userAgent); //$NON-NLS-1$ //$NON-NLS-2$ + String response = method.getResponseBodyAsString(); log.debug("SL Response: " + response); //$NON-NLS-1$ SLResponse slResponse = new SLResponse(response, server, -- cgit v1.2.3