From 87b36acc9f2a9019dddf64ea0b94210087d03597 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 23 Sep 2022 14:20:40 +0200 Subject: fido detection test --- .../java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku') 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 41d92cf2..18f93b22 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 @@ -253,6 +253,18 @@ public class ATrustHandler extends MobileBKUHandler { }catch (Exception e) { log.debug("No text_tan tag"); } + try { + String webauthnLink = MobileBKUHelper.extractValueFromTagWithParam(responseData, "a", "id", "FidoButton", "href"); + log.info("Webauthn link: {}", webauthnLink); + } catch (Exception e) { + log.info("No webauthnLink"); + } + try { + String webauthnData = MobileBKUHelper.extractValueFromTagWithParam(responseData, "input", "id", "credentialOptions", "value"); + log.info("Fido credential options: {}", webauthnData); + } catch (Exception e) { + log.info("No webauthnData"); + } } else if (responseData.contains("sl:InfoboxReadResponse")) { // credentials ok! InfoboxReadResponse -- cgit v1.2.3