Class 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 Detail

      • WebAuthnHardware

        public WebAuthnHardware()
    • 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