summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-09 14:00:41 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-09 14:00:41 +0100
commit633946d4d2d21baea271dd65abed8a03210c7964 (patch)
tree68f834be83b28825ba67486ca0fc1d6074ca3f2b /pdf-over-gui
parente570c7f5db201881505ce703e091a57b2292ddde (diff)
downloadpdf-over-633946d4d2d21baea271dd65abed8a03210c7964.tar.gz
pdf-over-633946d4d2d21baea271dd65abed8a03210c7964.tar.bz2
pdf-over-633946d4d2d21baea271dd65abed8a03210c7964.zip
adjust to webauthn-java api change
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUFido2Composite.java3
1 files changed, 1 insertions, 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);