public class LoginInformationManagerImpl extends Object implements LoginInformationManager
BEAN_ID
Constructor and Description |
---|
LoginInformationManagerImpl(LoginInformationDao loginInformationDao,
AdministrationConfigurationAccessor administrationConfigurationAccessor) |
Modifier and Type | Method and Description |
---|---|
int |
getFailedLoginAttemptsCount(String userName)
Get number of failed login attempts for user
|
boolean |
incrementFailedCountAndCheckThreshold(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(String userName)
Reset number of failed login attempts for user.
|
public LoginInformationManagerImpl(@NotNull LoginInformationDao loginInformationDao, @NotNull AdministrationConfigurationAccessor administrationConfigurationAccessor)
public boolean isElevatedSecurityCheckRequired(String userName)
LoginInformationManager
isElevatedSecurityCheckRequired
in interface LoginInformationManager
public boolean incrementFailedCountAndCheckThreshold(@NotNull String userName)
LoginInformationManager
incrementFailedCountAndCheckThreshold
in interface LoginInformationManager
public int getFailedLoginAttemptsCount(@Nullable String userName)
LoginInformationManager
getFailedLoginAttemptsCount
in interface LoginInformationManager
public void resetFailedLoginAttemptsCount(@Nullable String userName)
LoginInformationManager
resetFailedLoginAttemptsCount
in interface LoginInformationManager
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.