public class TotpAuth extends AuthenticationProvider
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<TotpAuth> |
__TYPE_ARG |
Constructor and Description |
---|
TotpAuth(Object delegate) |
TotpAuth(TotpAuth delegate) |
Modifier and Type | Method and Description |
---|---|
TotpAuth |
authenticatorFetcher(java.util.function.Function<String,Single<Authenticator>> fetcher)
Provide a that can fetch s from a backend given an
identifier
argument. |
TotpAuth |
authenticatorUpdater(java.util.function.Function<Authenticator,Completable> updater)
Provide a that can update or insert a .
|
static TotpAuth |
create()
Creates an instance of TotpAuth.
|
static TotpAuth |
create(TotpAuthOptions totpAuthOptions)
Creates an instance of TotpAuth.
|
Future<Authenticator> |
createAuthenticator(String id,
OtpKey otpKey)
Creating authenticator from user id and key.
|
boolean |
equals(Object o) |
String |
generateUri(OtpKey otpKey,
String label)
Creating URI for register in key in user device.
|
String |
generateUri(OtpKey otpKey,
String issuer,
String user)
Creating URI for register in key in user device.
|
String |
generateUri(OtpKey otpKey,
String issuer,
String user,
String label)
Creating URI for register in key in user device.
|
TotpAuth |
getDelegate() |
int |
hashCode() |
static TotpAuth |
newInstance(TotpAuth arg) |
String |
toString() |
authenticate, authenticate, newInstance, rxAuthenticate, rxAuthenticate
public static final io.vertx.lang.rx.TypeArg<TotpAuth> __TYPE_ARG
public TotpAuth(TotpAuth delegate)
public TotpAuth(Object delegate)
public String toString()
toString
in class AuthenticationProvider
public boolean equals(Object o)
equals
in class AuthenticationProvider
public int hashCode()
hashCode
in class AuthenticationProvider
public TotpAuth getDelegate()
getDelegate
in class AuthenticationProvider
public TotpAuth authenticatorFetcher(java.util.function.Function<String,Single<Authenticator>> fetcher)
identifier
argument.
The function signature is as follows:
(id) -> Future
id
the identifier to lookup.fetcher
- fetcher function.public TotpAuth authenticatorUpdater(java.util.function.Function<Authenticator,Completable> updater)
(Authenticator) -> Future
updater
- updater function.public Future<Authenticator> createAuthenticator(String id, OtpKey otpKey)
id
- id user.otpKey
- key of user used for auth.public String generateUri(OtpKey otpKey, String issuer, String user, String label)
otpKey
- user key.issuer
- issuer of key.user
- display name of user account.label
- the label to identify which account a key is associated with.public String generateUri(OtpKey otpKey, String issuer, String user)
otpKey
- user key.issuer
- issuer of key.user
- display name of user account.public String generateUri(OtpKey otpKey, String label)
otpKey
- user key.label
- the label to identify which account a key is associated with.public static TotpAuth create()
TotpAuth
.public static TotpAuth create(TotpAuthOptions totpAuthOptions)
totpAuthOptions
- the config.TotpAuth
.Copyright © 2023 Eclipse. All rights reserved.