public class WebAuthn extends AuthenticationProvider
AuthenticationProvider instances.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<WebAuthn> |
__TYPE_ARG |
| Constructor and Description |
|---|
WebAuthn(Object delegate) |
WebAuthn(io.vertx.ext.auth.webauthn.WebAuthn delegate) |
| Modifier and Type | Method and Description |
|---|---|
WebAuthn |
authenticatorFetcher(Function<io.vertx.ext.auth.webauthn.Authenticator,io.reactivex.rxjava3.core.Single<List<io.vertx.ext.auth.webauthn.Authenticator>>> fetcher)
Provide a that can fetch
Authenticators from a backend given the incomplete
Authenticator argument. |
WebAuthn |
authenticatorUpdater(Function<io.vertx.ext.auth.webauthn.Authenticator,io.reactivex.rxjava3.core.Completable> updater)
Provide a that can update or insert a
Authenticator. |
static WebAuthn |
create(Vertx vertx)
Create a WebAuthN auth provider
|
static WebAuthn |
create(Vertx vertx,
io.vertx.ext.auth.webauthn.WebAuthnOptions options)
Create a WebAuthN auth provider
|
io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> |
createCredentialsOptions(io.vertx.core.json.JsonObject user)
Gets a challenge and any other parameters for the
navigator.credentials.create() call. |
boolean |
equals(Object o) |
io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> |
getCredentialsOptions(String name)
Creates an assertion challenge and any other parameters for the
navigator.credentials.get() call. |
io.vertx.ext.auth.webauthn.WebAuthn |
getDelegate() |
int |
hashCode() |
MetaDataService |
metaDataService()
Getter to the instance FIDO2 Meta Data Service.
|
static WebAuthn |
newInstance(io.vertx.ext.auth.webauthn.WebAuthn arg) |
io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> |
rxCreateCredentialsOptions(io.vertx.core.json.JsonObject user)
Gets a challenge and any other parameters for the
navigator.credentials.create() call. |
io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> |
rxGetCredentialsOptions(String name)
Creates an assertion challenge and any other parameters for the
navigator.credentials.get() call. |
String |
toString() |
authenticate, authenticate, newInstance, rxAuthenticate, rxAuthenticatepublic WebAuthn(io.vertx.ext.auth.webauthn.WebAuthn delegate)
public WebAuthn(Object delegate)
public String toString()
toString in class AuthenticationProviderpublic boolean equals(Object o)
equals in class AuthenticationProviderpublic int hashCode()
hashCode in class AuthenticationProviderpublic io.vertx.ext.auth.webauthn.WebAuthn getDelegate()
getDelegate in class AuthenticationProviderpublic static WebAuthn create(Vertx vertx)
vertx - the Vertx instance.public static WebAuthn create(Vertx vertx, io.vertx.ext.auth.webauthn.WebAuthnOptions options)
vertx - the Vertx instance.options - the custom options to the provider.public io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> createCredentialsOptions(io.vertx.core.json.JsonObject user)
navigator.credentials.create() call.
The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptionsuser - - the user object with name and optionally displayName and iconpublic io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> rxCreateCredentialsOptions(io.vertx.core.json.JsonObject user)
navigator.credentials.create() call.
The object being returned is described here https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptionsuser - - the user object with name and optionally displayName and iconpublic io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> getCredentialsOptions(String name)
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-publickeycredentialcreationoptionsname - the unique user identifiedpublic io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> rxGetCredentialsOptions(String name)
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-publickeycredentialcreationoptionsname - the unique user identifiedpublic WebAuthn authenticatorFetcher(Function<io.vertx.ext.auth.webauthn.Authenticator,io.reactivex.rxjava3.core.Single<List<io.vertx.ext.auth.webauthn.Authenticator>>> fetcher)
Authenticators from a backend given the incomplete
Authenticator argument.
The implementation must consider the following fields exclusively, while performing the lookup:
AuthenticatorAuthenticator ()}null.
The function signature is as follows:
(Authenticator) -> Future>>
Authenticator the incomplete authenticator data to lookup.fetcher - fetcher function.public WebAuthn authenticatorUpdater(Function<io.vertx.ext.auth.webauthn.Authenticator,io.reactivex.rxjava3.core.Completable> updater)
Authenticator.
The function should store a given authenticator to a persistence storage.
When an authenticator is already present, this method must at least update
Authenticator, and is not required to perform any other update.
For new authenticators, the whole object data must be persisted.
The function signature is as follows:
(Authenticator) -> Future
Authenticator the authenticator data to update.updater - updater function.public MetaDataService metaDataService()
public static WebAuthn newInstance(io.vertx.ext.auth.webauthn.WebAuthn arg)
Copyright © 2022 Eclipse. All rights reserved.