Class AccountLockoutManager
java.lang.Object
org.genesys.blocks.security.lockout.AccountLockoutManager
{#link
AccountLockoutManager keeps track of successive failed login
attempts and locks the user account if there are more than {
lockAfterXFailures successive failures.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Class AttemptStatistics. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleFailedLogin(String userName) Update failed attempt statistics on failed login.voidhandleSuccessfulLogin(String userName) Reset failed attempt statistics on successful login.voidsetLockAfterXFailures(int lockAfterXFailures) Set number of successive failed login attempts that result in account lockout.voidsetLockoutTime(int lockoutTime) Set account lockout time.
-
Constructor Details
-
AccountLockoutManager
public AccountLockoutManager()
-
-
Method Details
-
setLockoutTime
public void setLockoutTime(int lockoutTime) Set account lockout time.- Parameters:
lockoutTime- the new lockout time
-
setLockAfterXFailures
public void setLockAfterXFailures(int lockAfterXFailures) Set number of successive failed login attempts that result in account lockout.- Parameters:
lockAfterXFailures- the new lock after X failures
-
handleSuccessfulLogin
Reset failed attempt statistics on successful login.- Parameters:
userName- the user name
-
handleFailedLogin
Update failed attempt statistics on failed login.- Parameters:
userName- the user name
-