com.atlassian.jira.security.login
Class LoginManagerImpl

java.lang.Object
  extended by com.atlassian.jira.security.login.LoginManagerImpl
All Implemented Interfaces:
LoginManager

public class LoginManagerImpl
extends Object
implements LoginManager

Implementation of LoginManager

Since:
v4.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.security.login.LoginManager
LoginManager.LoginResult
 
Field Summary
 
Fields inherited from interface com.atlassian.jira.security.login.LoginManager
HAS_PERMISSION
 
Constructor Summary
LoginManagerImpl(PermissionManager permissionManager, LoginStore loginStore)
           
 
Method Summary
 LoginManager.LoginResult authoriseLogin(User user, javax.servlet.http.HttpServletRequest request)
          This is called to see if an autenticated user is allowed to login JIRA in the context of a web request.
 LoginInfo getLoginInfo(User user)
          This is called to get LoginInfo about a given user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginManagerImpl

public LoginManagerImpl(PermissionManager permissionManager,
                        LoginStore loginStore)
Method Detail

authoriseLogin

public LoginManager.LoginResult authoriseLogin(User user,
                                               javax.servlet.http.HttpServletRequest request)
Description copied from interface: LoginManager
This is called to see if an autenticated user is allowed to login JIRA in the context of a web request.

At this stage the user has had their username and password authenticated but we need to see if they can be authorrised to use JIRA.

Specified by:
authoriseLogin in interface LoginManager
Parameters:
user - the user to login. This MUST not be null.
request - the web request in play
Returns:
a LoginManager.LoginResult object describing how this attempt went.

getLoginInfo

public LoginInfo getLoginInfo(User user)
Description copied from interface: LoginManager
This is called to get LoginInfo about a given user.

Specified by:
getLoginInfo in interface LoginManager
Parameters:
user - the user in play. This must NOT be null.
Returns:
a LoginInfo object


Copyright © 2002-2009 Atlassian. All Rights Reserved.