Class WebAuthn4J

All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate

public class WebAuthn4J extends AuthenticationProvider implements io.vertx.lang.rx.RxDelegate
Factory interface for creating WebAuthN based AuthenticationProvider instances.

NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.vertx.lang.rx.TypeArg<WebAuthn4J> __TYPE_ARG
  • Constructor Details

    • WebAuthn4J

      public WebAuthn4J(WebAuthn4J delegate)
    • WebAuthn4J

      public WebAuthn4J(Object delegate)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class AuthenticationProvider
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class AuthenticationProvider
    • getDelegate

      public WebAuthn4J getDelegate()
      Specified by:
      getDelegate in interface io.vertx.lang.rx.RxDelegate
      Overrides:
      getDelegate in class AuthenticationProvider
    • create

      public static WebAuthn4J create(Vertx vertx)
      Create a WebAuthN auth provider
      Parameters:
      vertx - the Vertx instance.
      Returns:
      the auth provider.
    • create

      public static WebAuthn4J create(Vertx vertx, WebAuthn4JOptions options)
      Create a WebAuthN auth provider
      Parameters:
      vertx - the Vertx instance.
      options - the custom options to the provider.
      Returns:
      the auth provider.
    • createPublicKeyCredentialCreationOptions

      public Future<JsonObject> createPublicKeyCredentialCreationOptions(JsonObject user)
      Gets a challenge and any other parameters for the navigator.credentials.create() call.

      The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptions

      Parameters:
      user - - the user object with name and optionally displayName and icon
      Returns:
      a future notified with the encoded make credentials request
    • rxCreatePublicKeyCredentialCreationOptions

      public Single<JsonObject> rxCreatePublicKeyCredentialCreationOptions(JsonObject user)
      Gets a challenge and any other parameters for the navigator.credentials.create() call.

      The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptions

      Parameters:
      user - - the user object with name and optionally displayName and icon
      Returns:
      a future notified with the encoded make credentials request
    • createCredentialsOptions

      @Deprecated public Future<JsonObject> createCredentialsOptions(JsonObject user)
      Deprecated.
      Gets a challenge and any other parameters for the navigator.credentials.create() call.

      The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptions

      Parameters:
      user - - the user object with name and optionally displayName and icon
      Returns:
      a future notified with the encoded make credentials request
    • rxCreateCredentialsOptions

      @Deprecated public Single<JsonObject> rxCreateCredentialsOptions(JsonObject user)
      Deprecated.
      Gets a challenge and any other parameters for the navigator.credentials.create() call.

      The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptions

      Parameters:
      user - - the user object with name and optionally displayName and icon
      Returns:
      a future notified with the encoded make credentials request
    • createPublicKeyCredentialRequestOptions

      public Future<JsonObject> createPublicKeyCredentialRequestOptions(String username)
      Creates an assertion challenge and any other parameters for the navigator.credentials.get() call. If the auth provider is configured with RequireResidentKey and the username is null then the generated assertion will be a RK assertion (Usernameless).

      The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptions

      Parameters:
      username - the unique user identified
      Returns:
      a future notified with the server encoded get assertion request
    • rxCreatePublicKeyCredentialRequestOptions

      public Single<JsonObject> rxCreatePublicKeyCredentialRequestOptions(String username)
      Creates an assertion challenge and any other parameters for the navigator.credentials.get() call. If the auth provider is configured with RequireResidentKey and the username is null then the generated assertion will be a RK assertion (Usernameless).

      The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptions

      Parameters:
      username - the unique user identified
      Returns:
      a future notified with the server encoded get assertion request
    • getCredentialsOptions

      @Deprecated public Future<JsonObject> getCredentialsOptions(String username)
      Deprecated.
      Creates an assertion challenge and any other parameters for the navigator.credentials.get() call. If the auth provider is configured with RequireResidentKey and the username is null then the generated assertion will be a RK assertion (Usernameless).

      The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptions

      Parameters:
      username - the unique user identified
      Returns:
      a future notified with the server encoded get assertion request
    • rxGetCredentialsOptions

      @Deprecated public Single<JsonObject> rxGetCredentialsOptions(String username)
      Deprecated.
      Creates an assertion challenge and any other parameters for the navigator.credentials.get() call. If the auth provider is configured with RequireResidentKey and the username is null then the generated assertion will be a RK assertion (Usernameless).

      The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptions

      Parameters:
      username - the unique user identified
      Returns:
      a future notified with the server encoded get assertion request
    • credentialStorage

      public WebAuthn4J credentialStorage(CredentialStorage credentialStorage)
      Provide a CredentialStorage that can fetch Authenticators from storage and update them.
      Parameters:
      credentialStorage - the storage abstraction for credentials.
      Returns:
      fluent self.
    • newInstance

      public static WebAuthn4J newInstance(WebAuthn4J arg)