diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-09-23 14:20:40 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-09-23 14:20:40 +0200 |
commit | 87b36acc9f2a9019dddf64ea0b94210087d03597 (patch) | |
tree | d9ccf0dafda2894a7790f0dfca9ddae8454d28fe | |
parent | 0d0e631462033f2ba732b3f2c799fee4ba42970e (diff) | |
download | pdf-over-87b36acc9f2a9019dddf64ea0b94210087d03597.tar.gz pdf-over-87b36acc9f2a9019dddf64ea0b94210087d03597.tar.bz2 pdf-over-87b36acc9f2a9019dddf64ea0b94210087d03597.zip |
fido detection test
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java | 12 |
1 files changed, 12 insertions, 0 deletions
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
|