Class WebAuthn4J
- All Implemented Interfaces:
MutinyDelegate
AuthenticationProvider instances.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Paulo Lopes
- See Also:
-
WebAuthn4J
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWebAuthn4J(io.vertx.ext.auth.webauthn4j.WebAuthn4J delegate) Create a new instance ofWebAuthn4Jdelegating to the given (non-null) instance ofWebAuthn4J.WebAuthn4J(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<User>authenticate(io.vertx.ext.auth.authentication.Credentials credentials) Authenticate a user.authenticateAndAwait(io.vertx.ext.auth.authentication.Credentials credentials) Authenticate a user.authenticateAndForget(io.vertx.ext.auth.authentication.Credentials credentials) Authenticate a user.static WebAuthn4JCreate a WebAuthN auth providerstatic WebAuthn4JCreate a WebAuthN auth providerio.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject>createCredentialsOptions(io.vertx.core.json.JsonObject user) Gets a challenge and any other parameters for thenavigator.credentials.create()call.io.vertx.core.json.JsonObjectcreateCredentialsOptionsAndAwait(io.vertx.core.json.JsonObject user) Gets a challenge and any other parameters for thenavigator.credentials.create()call.createCredentialsOptionsAndForget(io.vertx.core.json.JsonObject user) Gets a challenge and any other parameters for thenavigator.credentials.create()call.credentialStorage(CredentialStorage credentialStorage) Provide aCredentialStoragethat can fetchAuthenticators from storage and update them.booleanio.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject>getCredentialsOptions(String username) Creates an assertion challenge and any other parameters for thenavigator.credentials.get()call.io.vertx.core.json.JsonObjectgetCredentialsOptionsAndAwait(String username) Creates an assertion challenge and any other parameters for thenavigator.credentials.get()call.getCredentialsOptionsAndForget(String username) Creates an assertion challenge and any other parameters for thenavigator.credentials.get()call.io.vertx.ext.auth.webauthn4j.WebAuthn4JGet the delegate instance.inthashCode()static WebAuthn4JnewInstance(io.vertx.ext.auth.webauthn4j.WebAuthn4J delegate) Creates a new instance of theWebAuthn4J.toString()Methods inherited from class io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
newInstance
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
WebAuthn4J
public WebAuthn4J(io.vertx.ext.auth.webauthn4j.WebAuthn4J delegate) Create a new instance ofWebAuthn4Jdelegating to the given (non-null) instance ofWebAuthn4J. -
WebAuthn4J
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.webauthn4j.WebAuthn4J 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:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classAuthenticationProvider- Returns:
- the delegate instance
-
createCredentialsOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject> createCredentialsOptions(io.vertx.core.json.JsonObject user) Gets a challenge and any other parameters for thenavigator.credentials.create()call.The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptions
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
user- - the user object with name and optionally displayName and icon- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
WebAuthn4J.createCredentialsOptions(JsonObject)
-
createCredentialsOptionsAndAwait
public io.vertx.core.json.JsonObject createCredentialsOptionsAndAwait(io.vertx.core.json.JsonObject user) Gets a challenge and any other parameters for thenavigator.credentials.create()call.The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptions
Unlike the bare Vert.x variant, this method returns a
JsonObject. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
user- - the user object with name and optionally displayName and icon- Returns:
- The operation result
- See Also:
-
WebAuthn4J.createCredentialsOptions(JsonObject)
-
createCredentialsOptionsAndForget
Gets a challenge and any other parameters for thenavigator.credentials.create()call.The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptions
Unlike the bare Vert.x variant, this method ignores the
JsonObjectresult or any failure.- Parameters:
user- - the user object with name and optionally displayName and icon- Returns:
- The current instance to chain operations if needed.
- See Also:
-
WebAuthn4J.createCredentialsOptions(JsonObject)
-
getCredentialsOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject> getCredentialsOptions(String username) Creates an assertion challenge and any other parameters for thenavigator.credentials.get()call. If the auth provider is configured withRequireResidentKeyand 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
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
username- the unique user identified. Can benull.- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
WebAuthn4J.getCredentialsOptions(String)
-
getCredentialsOptionsAndAwait
Creates an assertion challenge and any other parameters for thenavigator.credentials.get()call. If the auth provider is configured withRequireResidentKeyand 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
Unlike the bare Vert.x variant, this method returns a
JsonObject. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
username- the unique user identified- Returns:
- The operation result
- See Also:
-
WebAuthn4J.getCredentialsOptions(String)
-
getCredentialsOptionsAndForget
Creates an assertion challenge and any other parameters for thenavigator.credentials.get()call. If the auth provider is configured withRequireResidentKeyand 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
Unlike the bare Vert.x variant, this method ignores the
JsonObjectresult or any failure.- Parameters:
username- the unique user identified- Returns:
- The current instance to chain operations if needed.
- See Also:
-
WebAuthn4J.getCredentialsOptions(String)
-
authenticate
@CheckReturnValue public io.smallrye.mutiny.Uni<User> authenticate(io.vertx.ext.auth.authentication.Credentials credentials) Authenticate a user.The first argument is a Credentials object containing information for authenticating the user. What this actually contains depends on the specific implementation.
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Overrides:
authenticatein classAuthenticationProvider- Parameters:
credentials- The credentials- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
AuthenticationProvider.authenticate(Credentials)
-
authenticateAndAwait
Authenticate a user.The first argument is a Credentials object containing information for authenticating the user. What this actually contains depends on the specific implementation.
Unlike the bare Vert.x variant, this method returns a
User. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Overrides:
authenticateAndAwaitin classAuthenticationProvider- Parameters:
credentials- The credentials- Returns:
- The operation result
- See Also:
-
AuthenticationProvider.authenticate(Credentials)
-
authenticateAndForget
Authenticate a user.The first argument is a Credentials object containing information for authenticating the user. What this actually contains depends on the specific implementation.
Unlike the bare Vert.x variant, this method ignores the
Userresult or any failure.- Overrides:
authenticateAndForgetin classAuthenticationProvider- Parameters:
credentials- The credentials- Returns:
- The current instance to chain operations if needed.
- See Also:
-
AuthenticationProvider.authenticate(Credentials)
-
create
Create a WebAuthN auth provider- Parameters:
vertx- the Vertx instance.- Returns:
- the auth provider.
-
create
public static WebAuthn4J create(Vertx vertx, io.vertx.ext.auth.webauthn4j.WebAuthn4JOptions options) Create a WebAuthN auth provider- Parameters:
vertx- the Vertx instance.options- the custom options to the provider.- Returns:
- the auth provider.
-
credentialStorage
Provide aCredentialStoragethat can fetchAuthenticators from storage and update them.- Parameters:
credentialStorage- the storage abstraction for credentials.- Returns:
- fluent self.
-
newInstance
Creates a new instance of theWebAuthn4J. -
hashCode
public int hashCode()- Overrides:
hashCodein classAuthenticationProvider
-
equals
- Overrides:
equalsin classAuthenticationProvider
-
toString
- Overrides:
toStringin classAuthenticationProvider
-