Class WebAuthn
- All Implemented Interfaces:
MutinyDelegate
AuthenticationProvider
instances.
NOTE: This class has been automatically generated from the original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticatorFetcher
(Function<io.vertx.ext.auth.webauthn.Authenticator, io.smallrye.mutiny.Uni<List<io.vertx.ext.auth.webauthn.Authenticator>>> fetcher) authenticatorUpdater
(Function<io.vertx.ext.auth.webauthn.Authenticator, io.smallrye.mutiny.Uni<Void>> updater) static WebAuthn
static WebAuthn
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.io.vertx.core.json.JsonObject
createCredentialsOptionsAndAwait
(io.vertx.core.json.JsonObject user) Blocking variant ofcreateCredentialsOptions(JsonObject)
.createCredentialsOptionsAndForget
(io.vertx.core.json.JsonObject user) Variant ofcreateCredentialsOptions(JsonObject)
that ignores the result of the operation.boolean
io.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject>
getCredentialsOptions
(String name) Creates an assertion challenge and any other parameters for thenavigator.credentials.get()
call.io.vertx.core.json.JsonObject
Blocking variant ofgetCredentialsOptions(String)
.Variant ofgetCredentialsOptions(String)
that ignores the result of the operation.io.vertx.ext.auth.webauthn.WebAuthn
int
hashCode()
static WebAuthn
newInstance
(io.vertx.ext.auth.webauthn.WebAuthn arg) toString()
Methods inherited from class io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
authenticate, authenticate, authenticateAndAwait, authenticateAndAwait, authenticateAndForget, authenticateAndForget, newInstance
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
WebAuthn
public WebAuthn(io.vertx.ext.auth.webauthn.WebAuthn delegate) -
WebAuthn
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.webauthn.WebAuthn getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Overrides:
getDelegate
in classAuthenticationProvider
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toString
in classAuthenticationProvider
-
equals
- Overrides:
equals
in classAuthenticationProvider
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAuthenticationProvider
-
create
- Parameters:
vertx
- the Vertx instance.- Returns:
- the auth provider.
-
create
- Parameters:
vertx
- the Vertx instance.options
- the custom options to the provider.- Returns:
- the auth provider.
-
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-publickeycredentialcreationoptionsUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
user
- - the user object with name and optionally displayName and icon- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createCredentialsOptionsAndAwait
public io.vertx.core.json.JsonObject createCredentialsOptionsAndAwait(io.vertx.core.json.JsonObject user) Blocking variant ofcreateCredentialsOptions(JsonObject)
.This method waits 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 a RuntimeException).
- Parameters:
user
- - the user object with name and optionally displayName and icon- Returns:
- the JsonObject instance produced by the operation.
-
createCredentialsOptionsAndForget
Variant ofcreateCredentialsOptions(JsonObject)
that ignores the result of the operation.This method subscribes on the result of
createCredentialsOptions(JsonObject)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateCredentialsOptions(JsonObject)
but you don't need to compose it with other operations.- Parameters:
user
- - the user object with name and optionally displayName and icon- Returns:
- the instance of WebAuthn to chain method calls.
-
getCredentialsOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject> getCredentialsOptions(String name) Creates an assertion challenge and any other parameters for thenavigator.credentials.get()
call. If the auth provider is configured withRequireResidentKey
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-publickeycredentialcreationoptionsUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
name
- the unique user identified- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
getCredentialsOptionsAndAwait
Blocking variant ofgetCredentialsOptions(String)
.This method waits 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 a RuntimeException).
- Parameters:
name
- the unique user identified- Returns:
- the JsonObject instance produced by the operation.
-
getCredentialsOptionsAndForget
Variant ofgetCredentialsOptions(String)
that ignores the result of the operation.This method subscribes on the result of
getCredentialsOptions(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromgetCredentialsOptions(String)
but you don't need to compose it with other operations.- Parameters:
name
- the unique user identified- Returns:
- the instance of WebAuthn to chain method calls.
-
authenticatorFetcher
public WebAuthn authenticatorFetcher(Function<io.vertx.ext.auth.webauthn.Authenticator, io.smallrye.mutiny.Uni<List<io.vertx.ext.auth.webauthn.Authenticator>>> fetcher) - Parameters:
fetcher
- fetcher function.- Returns:
- fluent self.
-
authenticatorUpdater
public WebAuthn authenticatorUpdater(Function<io.vertx.ext.auth.webauthn.Authenticator, io.smallrye.mutiny.Uni<Void>> updater) - Parameters:
updater
- updater function.- Returns:
- fluent self.
-
metaDataService
- Returns:
- the MDS instance.
-
newInstance
-