Public Member Functions | |
TwoFactorAuthenticator (TwoFactorConfiguration configuration) throws InternalTwoFactorException | |
TwoFactorUser | getUser (String username) throws UserNotFoundException, InternalTwoFactorException |
TwoFactorUser | createUser (String username, String mobileNumber) |
PreAuthenticateResult | preAuthenticate (String username) throws Exception |
AuthenticateResult | authenticate (String username, String otp) throws Exception |
Class that handles authentication and loading or creating of 2FA users.
|
inline |
Construct a new com.eset.secureauthentication.sdk.TwoFactorAuthenticator instance.
configuration | configuration |
InternalTwoFactorException |
|
inline |
Authenticate an OTP for a user.
username | the ID of the user |
otp | the OTP to authenticate |
Exception |
Implements com.eset.secureauthentication.sdk.ITwoFactorAuthenticator.
|
inline |
Create a new two-factor user.
username | the ID of the user |
mobileNumber | the mobile number of the user |
Implements com.eset.secureauthentication.sdk.ITwoFactorAuthenticator.
|
inline |
Load an existing two-factor user.
username | the ID of the user |
UserNotFoundException | |
InternalTwoFactorException |
Implements com.eset.secureauthentication.sdk.ITwoFactorAuthenticator.
|
inline |
Begin 2FA process. This will sent a text message OTP if required.
username | the ID of the user |
Exception |
Implements com.eset.secureauthentication.sdk.ITwoFactorAuthenticator.