|
||||||||||
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(com.atlassian.crowd.embedded.api.User user,
String password)
This can be called to see if an user knows the given password. |
LoginResult |
authenticateWithoutElevatedCheck(com.atlassian.crowd.embedded.api.User user,
String password)
This can be called to see if an user knows the given password. |
boolean |
authoriseForLogin(ApplicationUser user,
javax.servlet.http.HttpServletRequest httpServletRequest)
This is called to see if an autenticated user is allowed to login JIRA in the context of a web request. |
boolean |
authoriseForRole(ApplicationUser user,
javax.servlet.http.HttpServletRequest httpServletRequest,
String role)
This is called to see if an autenticated user is allowed to execute the web request given the required role |
LoginInfo |
getLoginInfo(String userName)
This is called to get LoginInfo about a given user. |
Set<String> |
getRequiredRoles(javax.servlet.http.HttpServletRequest httpServletRequest)
Gets the set of role strings that are examined by Seraph to decide if a user is authorised to execute a request. |
boolean |
isElevatedSecurityCheckAlwaysShown()
|
void |
logout(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
This is called to logout the current user ourt and destroy their JIRA session |
LoginInfo |
onLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest,
String userName,
boolean loginSuccessful)
This is called after a login attempt has been made. |
boolean |
performElevatedSecurityCheck(javax.servlet.http.HttpServletRequest httpServletRequest,
String userName)
This is called to see whether the user has passed an extended security check (such as CAPTCHA) |
void |
resetFailedLoginCount(com.atlassian.crowd.embedded.api.User user)
This can be called to reset the failed login count of a user |
Method Detail |
---|
LoginInfo getLoginInfo(String userName)
userName
- the name of the user in play. This MUST not be null.
LoginInfo
objectboolean performElevatedSecurityCheck(javax.servlet.http.HttpServletRequest httpServletRequest, String userName)
httpServletRequest
- the HTTP request in playuserName
- the name of the user in play. This MUST not be null.
LoginInfo onLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest, String userName, boolean loginSuccessful)
httpServletRequest
- the HTTP request in playuserName
- the name of the user in play. This MUST not be null.loginSuccessful
- whether the login attempt was sucessful or not
LoginInfo
about the userLoginResult authenticate(com.atlassian.crowd.embedded.api.User user, String password)
user
- the user to authenticate. This MUST not be null.password
- the password to authenticate against
LoginResult authenticateWithoutElevatedCheck(com.atlassian.crowd.embedded.api.User user, String password)
user
- the user to authenticate. This MUST not be null.password
- the password to authenticate against
boolean authoriseForLogin(@Nonnull ApplicationUser user, javax.servlet.http.HttpServletRequest httpServletRequest)
user
- the user to authorise. This MUST not be null.httpServletRequest
- the web request in play
Set<String> getRequiredRoles(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest
- the request in play
boolean authoriseForRole(@Nullable ApplicationUser user, javax.servlet.http.HttpServletRequest httpServletRequest, String role)
user
- the user to authorise. This MAY be null.httpServletRequest
- the web request in play
void logout(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
httpServletRequest
- the HTTP request in playhttpServletResponse
- the HTTP response in playboolean isElevatedSecurityCheckAlwaysShown()
void resetFailedLoginCount(com.atlassian.crowd.embedded.api.User user)
user
- the user to authorise. This MUST not be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |