public class RecoveryLoginStore extends Object implements LoginStore
LoginStore for the 'recovery admin'. The login information
for other users is passed to a delegate to handle.RecoveryMode| Constructor and Description |
|---|
RecoveryLoginStore(RecoveryMode mode,
LoginStore delegate,
com.atlassian.core.util.Clock clock) |
| 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
|
LoginInfo |
updateLastLoginTime(ApplicationUser user)
This will update the last login time for the user without resetting the elevated
security check
|
public RecoveryLoginStore(RecoveryMode mode, LoginStore delegate, com.atlassian.core.util.Clock clock)
public LoginInfo getLoginInfo(ApplicationUser user)
LoginStoregetLoginInfo in interface LoginStoreuser - the user in play. This MUST not be null.LoginInfo objectpublic LoginInfo recordLoginAttempt(ApplicationUser user, boolean authenticated)
LoginStorerecordLoginAttempt in interface LoginStoreuser - the user in play. This MUST not be null.authenticated - set to true if they authenticated ok or false otherwiseLoginInfo objectpublic LoginInfo updateLastLoginTime(ApplicationUser user)
LoginStoreupdateLastLoginTime in interface LoginStoreuser - the user in play. This MUST not be null.LoginInfo objectpublic long getMaxAuthenticationAttemptsAllowed()
LoginStoregetMaxAuthenticationAttemptsAllowed in interface LoginStorepublic void resetFailedLoginCount(ApplicationUser user)
LoginStoreresetFailedLoginCount in interface LoginStoreuser - the user to authorise. This MUST not be null.Copyright © 2002-2023 Atlassian. All Rights Reserved.