From 9f1b46e1e92906b4f57d0076233a956566736f7b Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Wed, 16 Nov 2022 15:58:07 +0100 Subject: do not force fido2 default if libfido2 is unavailable --- .../src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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/MobileBKUConnector.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java index 29bf880f..f9108b7d 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 @@ -48,6 +48,7 @@ import at.asit.pdfover.signer.BkuSlConnector; import at.asit.pdfover.signer.SignatureException; import at.asit.pdfover.signer.UserCancelledException; import at.asit.pdfover.signer.pdfas.PdfAs4SLRequest; +import at.asit.webauthn.WebAuthN; import static at.asit.pdfover.commons.Constants.ISNOTNULL; @@ -57,7 +58,7 @@ public class MobileBKUConnector implements BkuSlConnector { private final @Nonnull MobileBKUState state; public MobileBKUConnector(@Nonnull MobileBKUState state) { this.state = state; - this.wantsFido2Default = state.getConfig().getFido2ByDefault(); + this.wantsFido2Default = WebAuthN.isAvailable() && state.getConfig().getFido2ByDefault(); state.storeRememberedCredentialsTo(this.credentials); } -- cgit v1.2.3