public class HotpAuth extends AuthenticationProvider
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<HotpAuth> |
__TYPE_ARG |
Constructor and Description |
---|
HotpAuth(HotpAuth delegate) |
HotpAuth(Object delegate) |
Modifier and Type | Method and Description |
---|---|
HotpAuth |
authenticatorFetcher(java.util.function.Function<String,Single<Authenticator>> fetcher)
Provide a that can fetch s from a backend given an
identifier
argument. |
HotpAuth |
authenticatorUpdater(java.util.function.Function<Authenticator,Completable> updater)
Provide a that can update or insert a .
|
static HotpAuth |
create()
Creates an instance of HotpAuth.
|
static HotpAuth |
create(HotpAuthOptions hotpAuthOptions)
Creates an instance of HotpAuth.
|
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.
|
HotpAuth |
getDelegate() |
int |
hashCode() |
static HotpAuth |
newInstance(HotpAuth arg) |
String |
toString() |
authenticate, authenticate, newInstance, rxAuthenticate, rxAuthenticate
public static final io.vertx.lang.rx.TypeArg<HotpAuth> __TYPE_ARG
public HotpAuth(HotpAuth delegate)
public HotpAuth(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 HotpAuth getDelegate()
getDelegate
in class AuthenticationProvider
public HotpAuth 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 HotpAuth 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 HotpAuth create()
HotpAuth
.public static HotpAuth create(HotpAuthOptions hotpAuthOptions)
hotpAuthOptions
- the config.HotpAuth
.Copyright © 2022 Eclipse. All rights reserved.