Interface WebAuthn4J

    • Method Detail

      • create

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

        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.
      • getCredentialsOptions

        Future<JsonObject> getCredentialsOptions​(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-publickeycredentialcreationoptions

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