Package com.atlassian.bamboo.user
Interface LoginInformationManager
- All Known Implementing Classes:
LoginInformationManagerImpl
public interface LoginInformationManager
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getFailedLoginAttemptsCount
(@Nullable String userName) Get number of failed login attempts for userboolean
incrementFailedCountAndCheckThreshold
(@NotNull String userName) Returns true when CAPTCHA would be required the next time this user authenticates.boolean
isElevatedSecurityCheckRequired
(String userName) Returns true when CAPTCHA is required for this user.void
resetFailedLoginAttemptsCount
(@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
-