|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.http.CrowdHttpAuthenticatorImpl
public class CrowdHttpAuthenticatorImpl
Implementation of CrowdHttpAuthenticator.
| Constructor Summary | |
|---|---|
CrowdHttpAuthenticatorImpl(CrowdClient client,
ClientProperties clientProperties,
CrowdHttpTokenHelper tokenHelper)
|
|
| Method Summary | |
|---|---|
User |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String username,
java.lang.String password)
Authenticates the user based on provided credentials. |
User |
getUser(javax.servlet.http.HttpServletRequest request)
Attempts to retrieve the currently authenticated User from the request. |
boolean |
isAuthenticated(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Tests whether a request is authenticated via SSO. |
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Logs out the authenticated user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CrowdHttpAuthenticatorImpl(CrowdClient client,
ClientProperties clientProperties,
CrowdHttpTokenHelper tokenHelper)
| Method Detail |
|---|
public User getUser(javax.servlet.http.HttpServletRequest request)
CrowdHttpAuthenticator
getUser in interface CrowdHttpAuthenticatorrequest - HTTP request, possibly containing a Crowd SSO cookie.
User or null if the there is no authenticated user.
public User authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String username,
java.lang.String password)
throws InvalidAuthenticationException,
OperationNotPermittedException,
OperationFailedException
CrowdHttpAuthenticator
authenticate in interface CrowdHttpAuthenticatorrequest - request to set the Crowd SSO tokenresponse - response to set the Crowd SSO token cookieusername - username to authenticatepassword - password of the user
InvalidAuthenticationException - if the application or user authentication was not successful.
OperationNotPermittedException - if the application is not permitted to perform the requested operation on the server.
OperationFailedException - if the operation has failed for an unknown reason
public boolean isAuthenticated(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
CrowdHttpAuthenticator
isAuthenticated in interface CrowdHttpAuthenticatorrequest - HttpServletRequestresponse - HttpServletResponse
true if and only if the request has been authenticated.
public void logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
CrowdHttpAuthenticator
logout in interface CrowdHttpAuthenticatorrequest - request contains the Crowd SSO token to invalidate and hence log the user out.response - response returns a request to remove the token cookie from the user browser.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||