Public Member Functions | |
TwoFactorUser (IUserStorage userStorage, IAuditor auditor, IUser user, boolean hasChanges) | |
TwoFactorUser (IUserStorage userStorage, IAuditor auditor, IUser user) | |
String | getUserId () |
String | getMobileNumber () |
void | setMobileNumber (String mobileNumber) |
boolean | getIsLocked () |
Date | getLastSuccess () |
Date | getLastFailure () |
int | getConsecutiveFailures () |
CredentialTypes | getCredentialType () |
void | deprovisionTwoFactor () throws InternalTwoFactorException, InvalidApiCredentialsException, ProvisioningCommunicationException, VersionNotSupportedException, LicenseExceededException |
void | unlock () |
ProvisionMobileAppResult | provisionMobileApp (boolean allowTransitioning) throws InternalTwoFactorException, ProvisioningCommunicationException, VersionNotSupportedException, InvalidApiCredentialsException, LicenseExceededException |
ProvisionMobileAppResult | provisionMobileApp () throws ProvisioningCommunicationException, InternalTwoFactorException, VersionNotSupportedException, InvalidApiCredentialsException, LicenseExceededException |
void | sendMobileAppProvisioningTextMessage (ProvisionMobileAppResult provisionResult) throws InsufficientTextMessageCreditsException, ProvisioningCommunicationException, InternalTwoFactorException, VersionNotSupportedException, InvalidApiCredentialsException |
void | provisionTextMessage (boolean allowTransitioning) throws InternalTwoFactorException, InvalidApiCredentialsException, ProvisioningCommunicationException, VersionNotSupportedException, LicenseExceededException |
void | provisionTextMessage () throws VersionNotSupportedException, InvalidApiCredentialsException, InternalTwoFactorException, ProvisioningCommunicationException, LicenseExceededException |
boolean | getHasChanges () |
void | save () throws InternalTwoFactorException |
Class that handles all 2FA management options for a user.
|
inline |
Disable 2FA for user.
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Get mobile number of user.
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Get ID of user.
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Provision a user for mobile app OTPs.
allowTransitioning | true if the user can enter a transitioning state (from text message OTPs) |
InternalTwoFactorException | |
ProvisioningCommunicationException | |
VersionNotSupportedException | |
InvalidApiCredentialsException |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Provision a user for mobile app OTPs, while allowing transitioning. Overload provisionMobileApp(boolean).
InternalTwoFactorException | |
ProvisioningCommunicationException | |
VersionNotSupportedException | |
InvalidApiCredentialsException |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Provision a user for text message OTPs.
allowTransitioning | true if the user can enter a transitioning state (from mobile app OTPs) |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Provision a user for text message OTPs, while allowing transitioning. Overload of provisionTextMessage(boolean).
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Save any unsaved changes to the user object.
InternalTwoFactorException |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Send text message containing mobile app installation URL to user.
provisionResult | com.eset.secureauthentication.sdk.results.ProvisionMobileAppResult object returned from provisionMobileApp(boolean) or provisionMobileApp() |
InsufficientTextMessageCreditsException | |
ProvisioningCommunicationException | |
InternalTwoFactorException | |
VersionNotSupportedException | |
InvalidApiCredentialsException |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Set mobile number of user.
mobileNumber | value to set mobile number of user to |
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.
|
inline |
Unlock the user.
Implements com.eset.secureauthentication.sdk.ITwoFactorUser.