Class WebAuthnHardware
java.lang.Object
io.quarkus.test.security.webauthn.WebAuthnHardware
Provides an emulation of a WebAuthn hardware token, suitable for generating registration
and login JSON objects that you can send to the Quarkus WebAuthn Security extension.
The public/private key and id/credID are randomly generated and different for every instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.json.JsonObjectmakeLoginJson(String challenge) Creates a login JSON object for the given challengeio.vertx.core.json.JsonObjectmakeRegistrationJson(String challenge) Creates a registration JSON object for the given challenge
-
Constructor Details
-
WebAuthnHardware
-
-
Method Details
-
makeRegistrationJson
Creates a registration JSON object for the given challenge- Parameters:
challenge- the server-sent challenge- Returns:
- a registration JSON object
-
makeLoginJson
Creates a login JSON object for the given challenge- Parameters:
challenge- the server-sent challenge- Returns:
- a login JSON object
-