Home » geronimo-2.2-source-release » org.apache.geronimo.security.realm.providers » [javadoc | source]
static class: RepeatedFailureLockoutLoginModule.LoginHistory [javadoc | source]

All Implemented Interfaces:

Tracks failure attempts for a user, and calculates lockout status and expiry, etc.
 public LoginHistory(String user) 
Method from org.apache.geronimo.security.realm.providers.RepeatedFailureLockoutLoginModule$LoginHistory Summary:
addFailure,   cleanup,   getUser,   isLoginAllowed
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.security.realm.providers.RepeatedFailureLockoutLoginModule$LoginHistory Detail:
 public synchronized  void addFailure() 
    Notes that a failure occured.
 public synchronized  void cleanup(long ignoreOlderThan) 
    Cleans up all failure records outside the window of time we care about.
 public String getUser() 
 public synchronized boolean isLoginAllowed(int lockoutLengthMillis,
    int failureAgeMillis,
    int maxFailures) 
    Cleans up the failure history and then calculates whether this user is locked out or not.