|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.rest.auth.Login
public class Login
Implement a REST resource for acquiring a session cookie.
Constructor Summary | |
---|---|
Login(LoginService loginService,
JiraAuthenticationContext jiraAuthenticationContext,
VelocityRequestContextFactory velocityRequestContextFactory,
ContextI18n i18n)
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
currentUser()
Returns information about the currently authenticated user's session. |
javax.ws.rs.core.Response |
login(com.atlassian.jira.rest.auth.AuthParams credentials,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates a new session for a user in JIRA. |
javax.ws.rs.core.Response |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Logs the current user out of JIRA, destroying the existing session, if any. |
protected void |
stampDeniedReasonsOnResponse(javax.servlet.http.HttpServletResponse response,
Set<DeniedReason> deniedReasons)
Stamps the '"X-Authentication-Denied-Reason"' header on the response object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Login(LoginService loginService, JiraAuthenticationContext jiraAuthenticationContext, VelocityRequestContextFactory velocityRequestContextFactory, ContextI18n i18n)
Method Detail |
---|
public javax.ws.rs.core.Response currentUser() throws URISyntaxException
URISyntaxException
- if the self URI is invalid somehowpublic javax.ws.rs.core.Response login(com.atlassian.jira.rest.auth.AuthParams credentials, @Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response)
credentials
- the username and password to authenticaterequest
- injected by Jerseyresponse
- injected by Jersey
com.atlassian.seraph.auth.AuthenticatorException
- if the DefaultAuthenticator explodespublic javax.ws.rs.core.Response logout(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response)
request
- injected by Jerseyresponse
- injected by Jersey
protected void stampDeniedReasonsOnResponse(javax.servlet.http.HttpServletResponse response, Set<DeniedReason> deniedReasons)
response
- a HttpServletResponsedeniedReasons
- a Set of DeniedReason
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |