java.lang.Object | |
↳ | com.atlassian.jira.rest.auth.Login |
Implement a REST resource for acquiring a session cookie.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns information about the currently authenticated user's session.
| |||||||||||
Creates a new session for a user in JIRA.
| |||||||||||
Logs the current user out of JIRA, destroying the existing session, if any.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Stamps the '{@value com.atlassian.jira.bc.security.login.DeniedReason#X_DENIED_HEADER}' header on the response
object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Returns information about the currently authenticated user's session. If the caller is not authenticated they will get a 401 Unauthorized status code.
URISyntaxException | if the self URI is invalid somehow |
---|
Creates a new session for a user in JIRA. Once a session has been successfully created it can be used to access any of JIRA's remote APIs and also the web UI by passing the appropriate HTTP Cookie header.
Note that it is generally preferrable to use HTTP BASIC authentication with the REST API. However, this resource may be used to mimic the behaviour of JIRA's log-in page (e.g. to display log-in errors to a user).credentials | the username and password to authenticate |
---|---|
request | injected by Jersey |
response | injected by Jersey |
AuthenticatorException | if the DefaultAuthenticator explodes |
---|
Logs the current user out of JIRA, destroying the existing session, if any.
request | injected by Jersey |
---|---|
response | injected by Jersey |
Stamps the '{@value com.atlassian.jira.bc.security.login.DeniedReason#X_DENIED_HEADER}' header on the response object.
response | a HttpServletResponse |
---|---|
deniedReasons | a Set of DeniedReason |