Class WebAuthn4J

    • Constructor Detail

      • WebAuthn4J

        public WebAuthn4J​(WebAuthn4J delegate)
      • WebAuthn4J

        public WebAuthn4J​(Object delegate)
    • Method Detail

      • create

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

        public static WebAuthn4J create​(io.vertx.rxjava3.core.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.
      • createCredentialsOptions

        public io.reactivex.rxjava3.core.Single<JsonObject> createCredentialsOptions​(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
      • rxCreateCredentialsOptions

        public io.reactivex.rxjava3.core.Single<JsonObject> rxCreateCredentialsOptions​(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
      • getCredentialsOptions

        public io.reactivex.rxjava3.core.Single<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
      • rxGetCredentialsOptions

        public io.reactivex.rxjava3.core.Single<JsonObject> rxGetCredentialsOptions​(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