Class WebAuthn4J
java.lang.Object
io.vertx.rxjava3.ext.auth.authentication.AuthenticationProvider
io.vertx.rxjava3.ext.auth.webauthn4j.WebAuthn4J
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
Factory interface for creating WebAuthN based
AuthenticationProvider instances.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WebAuthn4JCreate a WebAuthN auth providerstatic WebAuthn4Jcreate(Vertx vertx, WebAuthn4JOptions options) Create a WebAuthN auth providerGets a challenge and any other parameters for thenavigator.credentials.create()call.credentialStorage(CredentialStorage credentialStorage) Provide aCredentialStoragethat can fetchAuthenticators from storage and update them.booleangetCredentialsOptions(String username) Creates an assertion challenge and any other parameters for thenavigator.credentials.get()call.inthashCode()static WebAuthn4JnewInstance(WebAuthn4J arg) Gets a challenge and any other parameters for thenavigator.credentials.create()call.rxGetCredentialsOptions(String username) Creates an assertion challenge and any other parameters for thenavigator.credentials.get()call.toString()Methods inherited from class AuthenticationProvider
authenticate, newInstance, rxAuthenticate
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
WebAuthn4J
-
WebAuthn4J
-
-
Method Details
-
toString
- Overrides:
toStringin classAuthenticationProvider
-
equals
- Overrides:
equalsin classAuthenticationProvider
-
hashCode
public int hashCode()- Overrides:
hashCodein classAuthenticationProvider
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classAuthenticationProvider
-
create
Create a WebAuthN auth provider- Parameters:
vertx- the Vertx instance.- Returns:
- the auth provider.
-
create
Create a WebAuthN auth provider- Parameters:
vertx- the Vertx instance.options- the custom options to the provider.- Returns:
- the auth provider.
-
createCredentialsOptions
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
- Parameters:
user- - the user object with name and optionally displayName and icon- Returns:
- a future notified with the encoded make credentials request
-
rxCreateCredentialsOptions
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
- Parameters:
user- - the user object with name and optionally displayName and icon- Returns:
- a future notified with the encoded make credentials request
-
getCredentialsOptions
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
- Parameters:
username- the unique user identified- Returns:
- a future notified with the server encoded get assertion request
-
rxGetCredentialsOptions
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
- Parameters:
username- the unique user identified- Returns:
- a future notified with the server encoded get assertion request
-
credentialStorage
Provide aCredentialStoragethat can fetchAuthenticators from storage and update them.- Parameters:
credentialStorage- the storage abstraction for credentials.- Returns:
- fluent self.
-
newInstance
-