com.atlassian.jira.security.login
Class LoginStoreImpl

java.lang.Object
  extended by com.atlassian.jira.security.login.LoginStoreImpl
All Implemented Interfaces:
LoginStore

public class LoginStoreImpl
extends java.lang.Object
implements LoginStore

Since:
v4.0.1

Constructor Summary
LoginStoreImpl(ApplicationProperties applicationProperties)
           
 
Method Summary
 LoginInfo getLoginInfo(com.opensymphony.user.User 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(com.opensymphony.user.User user, boolean authenticated)
          This will record that fact the user authenticated or not
 void resetFailedLoginCount(com.opensymphony.user.User user)
          This can be called to reset the failed login count of a user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginStoreImpl

public LoginStoreImpl(ApplicationProperties applicationProperties)
Method Detail

recordLoginAttempt

public LoginInfo recordLoginAttempt(com.opensymphony.user.User user,
                                    boolean authenticated)
Description copied from interface: LoginStore
This will record that fact the user authenticated or not

Specified by:
recordLoginAttempt in interface LoginStore
Parameters:
user - the user in play. This MUST not be null.
authenticated - set to true if they authenticated ok or false otherwise
Returns:
a non null LoginInfo object

getMaxAuthenticationAttemptsAllowed

public long getMaxAuthenticationAttemptsAllowed()
Description copied from interface: LoginStore
This returns the maximum failed authentications attempts that the user can perform after which they will be asked for extra elevated security information

Specified by:
getMaxAuthenticationAttemptsAllowed in interface LoginStore
Returns:
the maximum authentication attempts allowed.

resetFailedLoginCount

public void resetFailedLoginCount(com.opensymphony.user.User user)
Description copied from interface: LoginStore
This can be called to reset the failed login count of a user

Specified by:
resetFailedLoginCount in interface LoginStore
Parameters:
user - the user to authorise. This MUST not be null.

getLoginInfo

public LoginInfo getLoginInfo(com.opensymphony.user.User user)
Description copied from interface: LoginStore
Called to get the login information about a user

Specified by:
getLoginInfo in interface LoginStore
Parameters:
user - the user in play. This MUST not be null.
Returns:
a non null LoginInfo object


Copyright © 2002-2010 Atlassian. All Rights Reserved.