Class WebAuthn4JHandler

    • Field Detail

      • __TYPE_ARG

        public static final io.vertx.lang.rx.TypeArg<WebAuthn4JHandler> __TYPE_ARG
    • Constructor Detail

      • WebAuthn4JHandler

        public WebAuthn4JHandler​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • create

        public static WebAuthn4JHandler create​(WebAuthn4J webAuthn)
        Create a WebAuthN auth handler. This handler expects at least the response callback to be installed.
        Parameters:
        webAuthn -
        Returns:
        the auth handler
      • setupCredentialsCreateCallback

        public WebAuthn4JHandler setupCredentialsCreateCallback​(Route route)
        The callback route to create registration attestations. Usually this route is
        /webauthn/register
        Parameters:
        route - the route where credential get options are generated.
        Returns:
        fluent self.
      • setupCredentialsGetCallback

        public WebAuthn4JHandler setupCredentialsGetCallback​(Route route)
        The callback route to create login attestations. Usually this route is
        /webauthn/login
        Parameters:
        route - the route where credential get options are generated.
        Returns:
        fluent self.
      • setupCallback

        public WebAuthn4JHandler setupCallback​(Route route)
        The callback route to verify attestations and assertions. Usually this route is
        /webauthn/response
        Parameters:
        route - the route where assertions and attestations are verified.
        Returns:
        fluent self.
      • setOrigin

        public WebAuthn4JHandler setOrigin​(String origin)
        Set the Origin to be validated by the webauthn object.
        Parameters:
        origin - - an HTTP Origin
        Returns:
        fluent self