|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.security.login.LoginServiceImpl
public class LoginServiceImpl
Implementation of LoginManager
Field Summary |
---|
Fields inherited from interface com.atlassian.jira.bc.security.login.LoginService |
---|
LOGIN_RESULT |
Constructor Summary | |
---|---|
LoginServiceImpl(LoginManager loginManager,
ApplicationProperties applicationProperties,
UserManager userManager,
JiraContactHelper contactHelper,
JiraAuthenticationContext authenticationContext)
|
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. |
LoginInfo |
getLoginInfo(String userName)
This is called to get LoginInfo about a given user. |
LoginProperties |
getLoginProperties(com.atlassian.crowd.embedded.api.User remoteUser,
javax.servlet.http.HttpServletRequest request)
Returns loginProperties needed to render the login gadget or login form. |
boolean |
isElevatedSecurityCheckAlwaysShown()
|
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Log out of JIRA |
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 LoginServiceImpl(LoginManager loginManager, ApplicationProperties applicationProperties, UserManager userManager, JiraContactHelper contactHelper, JiraAuthenticationContext authenticationContext)
Method Detail |
---|
public LoginInfo getLoginInfo(String userName)
LoginService
getLoginInfo
in interface LoginService
userName
- the name of the user in play. This MUST not be null.
LoginInfo
objectpublic boolean isElevatedSecurityCheckAlwaysShown()
isElevatedSecurityCheckAlwaysShown
in interface LoginService
public void resetFailedLoginCount(com.atlassian.crowd.embedded.api.User user)
LoginService
resetFailedLoginCount
in interface LoginService
user
- the user to authorise. This MUST not be null.public LoginResult authenticate(com.atlassian.crowd.embedded.api.User user, String password)
LoginService
authenticate
in interface LoginService
user
- the user to authenticate. This MUST not be null.password
- the password to authenticate against
public void logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
LoginService
logout
in interface LoginService
request
- the current servlet requestresponse
- the current servlet responsepublic LoginProperties getLoginProperties(com.atlassian.crowd.embedded.api.User remoteUser, javax.servlet.http.HttpServletRequest request)
LoginService
getLoginProperties
in interface LoginService
remoteUser
- the currently logged in userrequest
- the incoming http request which may contain user credentials
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |