Package com.atlassian.bamboo.user
Interface LoginInformationManager
- All Known Implementing Classes:
LoginInformationManagerImpl
public interface LoginInformationManager
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintgetFailedLoginAttemptsCount(@Nullable String userName) Get number of failed login attempts for userbooleanincrementFailedCountAndCheckThreshold(@NotNull String userName) Returns true when CAPTCHA would be required the next time this user authenticates.booleanisElevatedSecurityCheckRequired(String userName) Returns true when CAPTCHA is required for this user.voidresetFailedLoginAttemptsCount(@Nullable String userName) Reset number of failed login attempts for user.
-
Field Details
-
BEAN_ID
- See Also:
-
-
Method Details
-
isElevatedSecurityCheckRequired
Returns true when CAPTCHA is required for this user.- Parameters:
userName-- Returns:
- true when CAPTCHA is required for this user.
-
incrementFailedCountAndCheckThreshold
boolean incrementFailedCountAndCheckThreshold(@NotNull @NotNull String userName) throws IllegalArgumentException Returns true when CAPTCHA would be required the next time this user authenticates.- Parameters:
userName-- Returns:
- true when CAPTCHA would be required the next time this user authenticates.
- Throws:
IllegalArgumentException- when unable save login attempt to DB
-
getFailedLoginAttemptsCount
Get number of failed login attempts for user- Parameters:
userName-- Returns:
-
resetFailedLoginAttemptsCount
Reset number of failed login attempts for user.- Parameters:
userName-- Throws:
IllegalArgumentException- when unable save login attempt to DB
-