Class WebAuthnHardware
- java.lang.Object
-
- io.quarkus.test.security.webauthn.WebAuthnHardware
-
public class WebAuthnHardware extends Object
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, and the origin is always for http://localhost
-
-
Constructor Summary
Constructors Constructor Description WebAuthnHardware()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertx.core.json.JsonObject
makeLoginJson(String challenge)
Creates a login JSON object for the given challengeio.vertx.core.json.JsonObject
makeRegistrationJson(String challenge)
Creates a registration JSON object for the given challenge
-
-
-
Method Detail
-
makeRegistrationJson
public io.vertx.core.json.JsonObject makeRegistrationJson(String challenge)
Creates a registration JSON object for the given challenge- Parameters:
challenge
- the server-sent challenge- Returns:
- a registration JSON object
-
makeLoginJson
public io.vertx.core.json.JsonObject makeLoginJson(String challenge)
Creates a login JSON object for the given challenge- Parameters:
challenge
- the server-sent challenge- Returns:
- a login JSON object
-
-