|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoginManager
The LoginManager keeps track of users login activities.
Method Summary | |
---|---|
LoginResult |
authenticate(java.lang.String userName,
java.lang.String password)
Try to authenticate a user given the userName and password . |
LoginInfo |
getLoginInfo(java.lang.String userName)
Return information about a user's login history. |
LoginInfo |
getLoginInfo(com.atlassian.user.User user)
Return information about a user's login history. |
boolean |
isElevatedSecurityCheckEnabled()
Check if elevated security checks are available/enabled. |
void |
onFailedLoginAttempt(java.lang.String userName)
Deprecated. since 3.4 use onFailedLoginAttempt(String userName, HttpServletRequest servletRequest) instead |
void |
onFailedLoginAttempt(java.lang.String userName,
javax.servlet.http.HttpServletRequest servletRequest)
This is called after an unsuccessful login attempt has been made. |
void |
onSuccessfulLoginAttempt(java.lang.String userName)
Deprecated. since 3.4 use onSuccessfulLoginAttempt(String userName, HttpServletRequest servletRequest) instead |
void |
onSuccessfulLoginAttempt(java.lang.String userName,
javax.servlet.http.HttpServletRequest servletRequest)
This is called after a successful login attempt has been made. |
boolean |
requiresElevatedSecurityCheck(java.lang.String userName)
This is called to see whether the user requires an extended security check (such as CAPTCHA) |
void |
resetFailedLoginCount(com.atlassian.user.User user)
This can be called to reset the failed login count of a user |
Method Detail |
---|
LoginResult authenticate(java.lang.String userName, java.lang.String password)
userName
and password
.
Returns a LoginResult
that contains information about this particular authentication attempt.
Calling this method has side effects as the login manager tracks the number of failed and successful login attempts.
userName
- password
-
@Nullable LoginInfo getLoginInfo(java.lang.String userName)
userName
-
@Nullable LoginInfo getLoginInfo(com.atlassian.user.User user)
user
-
boolean requiresElevatedSecurityCheck(java.lang.String userName)
userName
- the name of the user in play. This MUST not be null.
userName
requires an extended security checkboolean isElevatedSecurityCheckEnabled()
@Deprecated void onFailedLoginAttempt(java.lang.String userName)
onFailedLoginAttempt(String userName, HttpServletRequest servletRequest)
instead
void onFailedLoginAttempt(java.lang.String userName, javax.servlet.http.HttpServletRequest servletRequest)
userName
- the name of the user in play. This MUST not be null.servletRequest
- the request pertaining to a login attempt.@Deprecated void onSuccessfulLoginAttempt(java.lang.String userName)
onSuccessfulLoginAttempt(String userName, HttpServletRequest servletRequest)
instead
void onSuccessfulLoginAttempt(java.lang.String userName, javax.servlet.http.HttpServletRequest servletRequest)
userName
- the name of the user in play. This MUST not be null.servletRequest
- the request pertaining to a login attempt.void resetFailedLoginCount(com.atlassian.user.User user)
user
- the user for which to reset the failed login count. This MUST not be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |