Package com.atlassian.bamboo.user
Class LoginInformationManagerImpl
- java.lang.Object
-
- com.atlassian.bamboo.user.LoginInformationManagerImpl
-
- All Implemented Interfaces:
LoginInformationManager
public class LoginInformationManagerImpl extends Object implements LoginInformationManager
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.user.LoginInformationManager
BEAN_ID
-
-
Constructor Summary
Constructors Constructor Description LoginInformationManagerImpl(@NotNull LoginInformationDao loginInformationDao, @NotNull AdministrationConfigurationAccessor administrationConfigurationAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFailedLoginAttemptsCount(@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.
-
-
-
Constructor Detail
-
LoginInformationManagerImpl
public LoginInformationManagerImpl(@NotNull @NotNull LoginInformationDao loginInformationDao, @NotNull @NotNull AdministrationConfigurationAccessor administrationConfigurationAccessor)
-
-
Method Detail
-
isElevatedSecurityCheckRequired
public boolean isElevatedSecurityCheckRequired(String userName)
Description copied from interface:LoginInformationManagerReturns true when CAPTCHA is required for this user.- Specified by:
isElevatedSecurityCheckRequiredin interfaceLoginInformationManager- Returns:
- true when CAPTCHA is required for this user.
-
incrementFailedCountAndCheckThreshold
public boolean incrementFailedCountAndCheckThreshold(@NotNull @NotNull String userName) throws IllegalArgumentExceptionDescription copied from interface:LoginInformationManagerReturns true when CAPTCHA would be required the next time this user authenticates.- Specified by:
incrementFailedCountAndCheckThresholdin interfaceLoginInformationManager- Returns:
- true when CAPTCHA would be required the next time this user authenticates.
- Throws:
IllegalArgumentException- when unable save login attempt to DB
-
getFailedLoginAttemptsCount
public int getFailedLoginAttemptsCount(@Nullable @Nullable String userName)Description copied from interface:LoginInformationManagerGet number of failed login attempts for user- Specified by:
getFailedLoginAttemptsCountin interfaceLoginInformationManager- Returns:
-
resetFailedLoginAttemptsCount
public void resetFailedLoginAttemptsCount(@Nullable @Nullable String userName) throws IllegalArgumentExceptionDescription copied from interface:LoginInformationManagerReset number of failed login attempts for user.- Specified by:
resetFailedLoginAttemptsCountin interfaceLoginInformationManager- Throws:
IllegalArgumentException- when unable save login attempt to DB
-
-