@PublicApi
public interface LoginService
Modifier and Type | Field and Description |
---|---|
static String |
LOGIN_RESULT
This is set into the the request for the last login result
|
Modifier and Type | Method and Description |
---|---|
LoginResult |
authenticate(ApplicationUser user,
String password)
This can be called to see if a user knows the given password.
|
LoginInfo |
getLoginInfo(String userName)
This is called to get LoginInfo about a given user.
|
LoginProperties |
getLoginProperties(ApplicationUser 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(ApplicationUser user)
This can be called to reset the failed login count of a user
|
static final String LOGIN_RESULT
LoginInfo getLoginInfo(String userName)
userName
- the name of the user in play. This MUST not be null.LoginInfo
objectboolean isElevatedSecurityCheckAlwaysShown()
void resetFailedLoginCount(ApplicationUser user)
user
- the user to authorise. This MUST not be null.LoginResult authenticate(ApplicationUser user, String password)
If the user requests elevatedSecurity then this will always fail with LoginReason.AUTHENTICATION_DENIED
user
- the user to authenticate. This MUST not be null.password
- the password to authenticate againstvoid logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- the current servlet requestresponse
- the current servlet responseLoginProperties getLoginProperties(ApplicationUser remoteUser, javax.servlet.http.HttpServletRequest request)
remoteUser
- the currently logged in userrequest
- the incoming http request which may contain user credentialsCopyright © 2002-2017 Atlassian. All Rights Reserved.