Class WebAuthn4JHandler

java.lang.Object
io.vertx.mutiny.ext.web.handler.WebAuthn4JHandler
All Implemented Interfaces:
MutinyDelegate, io.vertx.core.Handler<RoutingContext>, AuthenticationHandler, Consumer<RoutingContext>

public class WebAuthn4JHandler extends Object implements AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>, MutinyDelegate
An auth handler that provides FIDO2 WebAuthN Relay Party support.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

Author:
Paulo Lopes
See Also:
  • WebAuthn4JHandler
  • Field Details

  • Constructor Details

    • WebAuthn4JHandler

      public WebAuthn4JHandler(io.vertx.ext.web.handler.WebAuthn4JHandler delegate)
      Create a new instance of WebAuthn4JHandler delegating to the given (non-null) instance of WebAuthn4JHandler.
    • WebAuthn4JHandler

      public WebAuthn4JHandler(Object delegate)
  • Method Details

    • accept

      public void accept(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      accept in interface AuthenticationHandler
      Specified by:
      accept in interface Consumer<RoutingContext>
    • handle

      public void handle(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      handle in interface AuthenticationHandler
      Specified by:
      handle in interface io.vertx.core.Handler<RoutingContext>
    • getDelegate

      public io.vertx.ext.web.handler.WebAuthn4JHandler getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface AuthenticationHandler
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • create

      public static WebAuthn4JHandler create(WebAuthn4J webAuthn)
      Create a WebAuthN auth handler. This handler expects at least the response callback to be installed.
      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
    • newInstance

      public static WebAuthn4JHandler newInstance(io.vertx.ext.web.handler.WebAuthn4JHandler delegate)
      Creates a new instance of the WebAuthn4JHandler.
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object