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.
  • Constructor Details

    • WebAuthnHardware

      public WebAuthnHardware(URL origin)
  • Method Details

    • 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