public interface UserLoginAttemptService<P extends UserLoginAttempt>
UserLockoutService to manage creation of login attempts.| Modifier and Type | Method and Description |
|---|---|
int |
countConsideredUserLoginAttempts(String username,
String authServerId)
Read the number of failed login attempts
|
int |
countConsideredUserLoginAttempts(String username,
String authServerId,
Duration age)
Count number of user login attempts for a specific period of time (e.g.
|
P |
createUserLoginAttempt(String username,
String userId,
String loginAttemptResult,
String authServerId)
Create a new user login attempt.
|
void |
purgeLoginAttempts(Duration loginAttemptAge,
String authServerId)
Purges any login attempts older than the specified duration.
|
List<P> |
readConsideredUserLoginAttempts(String username,
String authServerId,
Duration age)
Read user login attempts for a specific period of time (e.g.
|
void |
resetLoginAttempts(String username,
String authServerId)
Reset user login attempts for a specific username and auth server ID.
|
int countConsideredUserLoginAttempts(String username, String authServerId, Duration age)
username - The username used in the login attemptauthServerId - The auth server idage - The period of timeint countConsideredUserLoginAttempts(String username, String authServerId)
username - The username to read forauthServerId - The auth server IDList<P> readConsideredUserLoginAttempts(String username, String authServerId, Duration age)
username - The username used in the login attemptauthServerId - The auth server idage - The period of timeP createUserLoginAttempt(String username, @Nullable String userId, String loginAttemptResult, String authServerId)
username - The usernameuserId - The user ID. OptionalloginAttemptResult - The login result. See
LoginAttemptResultauthServerId - The auth server idvoid resetLoginAttempts(String username, String authServerId)
username - The username to reset login attempts forauthServerId - The auth server IDvoid purgeLoginAttempts(Duration loginAttemptAge, @Nullable String authServerId)
loginAttemptAge - The age of login attempts to purge. Any attempts greater than or equal
to this age will be deleted.authServerId - The auth server ID of login attempts to purge. Optional.Copyright © 2021. All rights reserved.