Public Member Functions | |
__construct ($userStorage, $auditor, $user, $hasChanges=false) | |
getUserId () | |
getMobileNumber () | |
setMobileNumber ($value) | |
getIsLocked () | |
getLastSuccess () | |
getLastFailure () | |
getConsecutiveFailures () | |
getCredentialType () | |
deProvisionTwoFactor () | |
unlock () | |
provisionMobileApp ($allowTransitioning=true) | |
sendMobileAppProvisioningTextMessage (ProvisionMobileAppResult $provisionResult) | |
provisionTextMessage ($allowTransitioning=true) | |
getHasChanges () | |
save () | |
ESET\SecureAuthentication\SDK\TwoFactorUser::deProvisionTwoFactor | ( | ) |
Disable 2FA for the user
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::getConsecutiveFailures | ( | ) |
Retrieve the number of consecutive authentication failures
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::getCredentialType | ( | ) |
Retrieve the user's credential type
CredentialTypes int CredentialTypes constant
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::getHasChanges | ( | ) |
Determine if the user object has changes which need to be saved
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::getIsLocked | ( | ) |
Retrieve the user's account lock status
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::getLastFailure | ( | ) |
Retrive the date and time of the last failed authentication
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::getLastSuccess | ( | ) |
Retrieve the date and time of the last successful authentication
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::getMobileNumber | ( | ) |
Retrieve the user's mobile number
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::getUserId | ( | ) |
Retrieve the user's user ID, typically the username
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::provisionMobileApp | ( | $allowTransitioning = true | ) |
Provision the user for mobile app OTPs
If the user previously had text message OTPs enabled and $allowTransitioning is True, the user will continue to receive text message OTPs until they successfully authenticate with a mobile app OTP. At this time text message OTPs will be disabled automatically.
If $allowTransitioning is False, the existing credential is replaced immediately.
An installation text message is NOT automatically sent.
bool | $allowTransitioning | True: Allow transitioning from text message OTPs; False: replace existing credential with mobile app OTPs immediately |
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::provisionTextMessage | ( | $allowTransitioning = true | ) |
Provision the user for text message OTPs
If the user previously had mobile app OTPs enabled and $allowTransitioning is True, the user will receive text message OTPs until they successfully authenticate with a mobile app OTP. At this time text message OTPs will be disabled automatically. This is used to temporarily allow text message OTPs until the user can access the app again.
If $allowTransitioning is False, the existing credential is replaced immediately.
bool | $allowTransitioning | True: Allow transitioning; False: replace existing credential with mobile app OTPs immediately |
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::save | ( | ) |
Save changes to the user object
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::sendMobileAppProvisioningTextMessage | ( | ProvisionMobileAppResult | $provisionResult | ) |
Send a mobile app installation text message to the user
ProvisionMobileAppResult | $provisionResult |
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::setMobileNumber | ( | $value | ) |
Set the user's mobile number
string | $value |
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.
ESET\SecureAuthentication\SDK\TwoFactorUser::unlock | ( | ) |
Unlock the user's 2FA account
Accounts are locked when too many consecutive authentication failures occur.
Implements ESET\SecureAuthentication\SDK\ITwoFactorUser.