public interface LoginAttemptManager extends LoginAttemptOptions
| Modifier and Type | Method and Description |
|---|---|
LoginAttempt |
create(String username)
Init login attempt to specified username
|
LoginAttempt |
findByUsername(String username)
Get login attempt by specified username
|
LoginAttempt |
increaseAttempt(String username)
Increase current attempt for specified username( if no login attempt found, will create one with zero value and increase to 1 )
|
boolean |
isAttemptExhausted(String username)
To judge the user exhaust all the attempt chance.
|
void |
reset(String username)
Set the login attempt (actually the login attempt is revoked from store)
|
getAttemptTimeout, getMaxAttempts, setAttemptTimeout, setMaxAttemptsLoginAttempt create(String username)
username - LoginAttempt findByUsername(String username)
username - void reset(String username)
username - LoginAttempt increaseAttempt(String username)
username - boolean isAttemptExhausted(String username)
username - Copyright © 2018. All rights reserved.