com.atlassian.jira.security.login
Interface LoginManager

All Known Implementing Classes:
LoginManagerImpl

public interface LoginManager

The LoginManager keeps track of users login activities.

Since:
v4.0

Nested Class Summary
static interface LoginManager.LoginResult
           
 
Field Summary
static String HAS_PERMISSION
          This request attribute is set in case of valid user, but no login permission.
 
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.
 

Field Detail

HAS_PERMISSION

static final String HAS_PERMISSION
This request attribute is set in case of valid user, but no login permission.

See Also:
Constant Field Values
Method Detail

authoriseLogin

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.

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.

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

LoginInfo getLoginInfo(User user)
This is called to get LoginInfo about a given user.

Parameters:
user - the user in play. This must NOT be null.
Returns:
a LoginInfo object


Copyright © 2002-2009 Atlassian. All Rights Reserved.