Class LockOutRealm.LockRecord
java.lang.Object
org.apache.catalina.realm.LockOutRealm.LockRecord
- Enclosing class:
LockOutRealm
Internal record to track lock state for a user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of authentication failures.longGet the time of the last failure.voidRegister a new authentication failure.voidsetFailures(int theFailures) Set the number of authentication failures.
-
Constructor Details
-
LockRecord
public LockRecord()Default constructor.
-
-
Method Details
-
getFailures
public int getFailures()Get the number of authentication failures.- Returns:
- the failures
-
setFailures
public void setFailures(int theFailures) Set the number of authentication failures.- Parameters:
theFailures- the failures to set
-
getLastFailureTime
public long getLastFailureTime()Get the time of the last failure.- Returns:
- the lastFailureTime
-
registerFailure
public void registerFailure()Register a new authentication failure.
-