diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-11-16 15:58:07 +0100 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-11-16 15:58:07 +0100 |
commit | 9f1b46e1e92906b4f57d0076233a956566736f7b (patch) | |
tree | e8ae340551bde8016f261b9d8225de9a3939fe4d /pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku | |
parent | 34ac0c6b303f09771d3d2dbd5d44e3b8e932d17c (diff) | |
download | pdf-over-9f1b46e1e92906b4f57d0076233a956566736f7b.tar.gz pdf-over-9f1b46e1e92906b4f57d0076233a956566736f7b.tar.bz2 pdf-over-9f1b46e1e92906b4f57d0076233a956566736f7b.zip |
do not force fido2 default if libfido2 is unavailable
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |