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