|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.security.login.LoginManagerImpl
public class LoginManagerImpl
Implementation of LoginManager
Constructor Summary | |
---|---|
LoginManagerImpl(PermissionManager permissionManager,
LoginStore loginStore,
JiraAuthenticationContext jiraAuthenticationContext,
com.atlassian.crowd.embedded.api.CrowdService crowdService,
JiraCaptchaService jiraCaptchaService,
com.atlassian.jira.security.login.LoginManagerImpl.StaticDependencies staticDependencies,
VelocityRequestContextFactory velocityRequestContextFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
|
|
LoginManagerImpl(PermissionManager permissionManager,
LoginStore loginStore,
JiraAuthenticationContext jiraAuthenticationContext,
com.atlassian.crowd.embedded.api.CrowdService crowdService,
JiraCaptchaService jiraCaptchaService,
VelocityRequestContextFactory velocityRequestContextFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
|
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 |
authorise(com.atlassian.crowd.embedded.api.User 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. |
protected Set<DeniedReason> |
getLoginDeniedReasons(javax.servlet.http.HttpServletRequest request)
Examines the HttpServletRequest, and determines the DeniedReason's that may have cause authentication to be denied by looking at the ELEVATED_SECURITY_FAILURE attribute. |
LoginInfo |
getLoginInfo(String userName)
This is called to get LoginInfo about a given user. |
boolean |
isElevatedSecurityCheckAlwaysShown()
|
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoginManagerImpl(PermissionManager permissionManager, LoginStore loginStore, JiraAuthenticationContext jiraAuthenticationContext, com.atlassian.crowd.embedded.api.CrowdService crowdService, JiraCaptchaService jiraCaptchaService, VelocityRequestContextFactory velocityRequestContextFactory, com.atlassian.event.api.EventPublisher eventPublisher)
public LoginManagerImpl(PermissionManager permissionManager, LoginStore loginStore, JiraAuthenticationContext jiraAuthenticationContext, com.atlassian.crowd.embedded.api.CrowdService crowdService, JiraCaptchaService jiraCaptchaService, com.atlassian.jira.security.login.LoginManagerImpl.StaticDependencies staticDependencies, VelocityRequestContextFactory velocityRequestContextFactory, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public LoginInfo getLoginInfo(String userName)
LoginManager
getLoginInfo
in interface LoginManager
userName
- the name of the user in play. This MUST not be null.
LoginInfo
objectpublic boolean performElevatedSecurityCheck(javax.servlet.http.HttpServletRequest httpServletRequest, String userName)
LoginManager
performElevatedSecurityCheck
in interface LoginManager
httpServletRequest
- the HTTP request in playuserName
- the name of the user in play. This MUST not be null.
public boolean authorise(com.atlassian.crowd.embedded.api.User user, javax.servlet.http.HttpServletRequest httpServletRequest)
LoginManager
authorise
in interface LoginManager
user
- the user to authorise. This MUST not be null.httpServletRequest
- the web request in play
public LoginResult authenticate(com.atlassian.crowd.embedded.api.User user, String password)
LoginManager
authenticate
in interface LoginManager
user
- the user to authenticate. This MUST not be null.password
- the password to authenticate against
public LoginResult authenticateWithoutElevatedCheck(com.atlassian.crowd.embedded.api.User user, String password)
LoginManager
authenticateWithoutElevatedCheck
in interface LoginManager
user
- the user to authenticate. This MUST not be null.password
- the password to authenticate against
public LoginInfo onLoginAttempt(javax.servlet.http.HttpServletRequest httpServletRequest, String userName, boolean loginSuccessful)
LoginManager
onLoginAttempt
in interface LoginManager
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 userpublic void logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
LoginManager
logout
in interface LoginManager
request
- the HTTP request in playresponse
- the HTTP response in playpublic boolean isElevatedSecurityCheckAlwaysShown()
isElevatedSecurityCheckAlwaysShown
in interface LoginManager
public void resetFailedLoginCount(com.atlassian.crowd.embedded.api.User user)
LoginManager
resetFailedLoginCount
in interface LoginManager
user
- the user to authorise. This MUST not be null.protected Set<DeniedReason> getLoginDeniedReasons(javax.servlet.http.HttpServletRequest request)
ELEVATED_SECURITY_FAILURE
attribute. Currently the only reason why this
attribute would be set is because a user is required to pass a CAPTCHA challenge.
request
- a HttpServletRequest
ELEVATED_SECURITY_FAILURE
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |