Package org.apache.catalina.realm
Class LockOutRealm.LockRecord
- java.lang.Object
-
- org.apache.catalina.realm.LockOutRealm.LockRecord
-
- Enclosing class:
- LockOutRealm
protected static class LockOutRealm.LockRecord extends java.lang.ObjectInternal record to track lock state for a user.
-
-
Constructor Summary
Constructors Constructor Description LockRecord()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFailures()Get the number of authentication failures.longgetLastFailureTime()Get the time of the last failure.voidregisterFailure()Register a new authentication failure.voidsetFailures(int theFailures)Set the number of authentication failures.
-
-
-
Method Detail
-
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.
-
-