Package com.atlassian.bamboo.user
Interface LoginInformationManager
-
- All Known Implementing Classes:
LoginInformationManagerImpl
public interface LoginInformationManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
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 Detail
-
BEAN_ID
static final String BEAN_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
isElevatedSecurityCheckRequired
boolean isElevatedSecurityCheckRequired(String userName)
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
int getFailedLoginAttemptsCount(@Nullable @Nullable String userName)
Get number of failed login attempts for user- Parameters:
userName
-- Returns:
-
resetFailedLoginAttemptsCount
void resetFailedLoginAttemptsCount(@Nullable @Nullable String userName)
Reset number of failed login attempts for user.- Parameters:
userName
-- Throws:
IllegalArgumentException
- when unable save login attempt to DB
-
-