public class LoginStoreImpl extends Object implements LoginStore
Constructor and Description |
---|
LoginStoreImpl(com.atlassian.core.util.Clock clock,
ApplicationProperties applicationProperties,
com.atlassian.crowd.embedded.api.CrowdService crowdService) |
Modifier and Type | Method and Description |
---|---|
LoginInfo |
getLoginInfo(ApplicationUser user)
Called to get the login information about a user
|
long |
getMaxAuthenticationAttemptsAllowed()
This returns the maximum failed authentications attempts that the user can perform
after which they will be asked for extra elevated security information
|
LoginInfo |
recordLoginAttempt(ApplicationUser user,
boolean authenticated)
This will record that fact the user authenticated or not
|
void |
resetFailedLoginCount(ApplicationUser user)
This can be called to reset the failed login count of a user
|
public LoginStoreImpl(com.atlassian.core.util.Clock clock, ApplicationProperties applicationProperties, com.atlassian.crowd.embedded.api.CrowdService crowdService)
public LoginInfo recordLoginAttempt(ApplicationUser user, boolean authenticated)
LoginStore
recordLoginAttempt
in interface LoginStore
user
- the user in play. This MUST not be null.authenticated
- set to true if they authenticated ok or false otherwiseLoginInfo
objectpublic long getMaxAuthenticationAttemptsAllowed()
LoginStore
getMaxAuthenticationAttemptsAllowed
in interface LoginStore
public void resetFailedLoginCount(ApplicationUser user)
LoginStore
resetFailedLoginCount
in interface LoginStore
user
- the user to authorise. This MUST not be null.public LoginInfo getLoginInfo(ApplicationUser user)
LoginStore
getLoginInfo
in interface LoginStore
user
- the user in play. This MUST not be null.LoginInfo
objectCopyright © 2002-2015 Atlassian. All Rights Reserved.