From 633946d4d2d21baea271dd65abed8a03210c7964 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Wed, 9 Nov 2022 14:00:41 +0100 Subject: adjust to webauthn-java api change --- .../asit/pdfover/gui/composites/mobilebku/MobileBKUFido2Composite.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUFido2Composite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUFido2Composite.java index 27b3eafa..23a8c70f 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUFido2Composite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUFido2Composite.java @@ -22,7 +22,6 @@ import at.asit.pdfover.gui.composites.StateComposite; import at.asit.pdfover.gui.utils.SWTUtils; import at.asit.pdfover.gui.workflow.states.State; import at.asit.webauthn.PublicKeyCredential; -import at.asit.webauthn.PublicKeyCredentialRequestOptions; import at.asit.webauthn.WebAuthN; import at.asit.webauthn.exceptions.WebAuthNUserCancelled; import at.asit.webauthn.responsefields.AuthenticatorAssertionResponse; @@ -64,7 +63,7 @@ public class MobileBKUFido2Composite extends StateComposite { btn_authenticate.setEnabled(false); new Thread(() -> { try { - this.credential = PublicKeyCredentialRequestOptions.FromJSONString(this.fido2OptionsString).get("https://service.a-trust.at"); + this.credential = WebAuthN.buildGetFromJSON(this.fido2OptionsString).get("https://service.a-trust.at"); } catch (Throwable t) { if (!(t instanceof WebAuthNUserCancelled)) { log.warn("webauthn operation failed", t); -- cgit v1.2.3