public class CarbonSSOSessionManager extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionMapping(String idPSessionIndex,
String localSessionId)
Add a new session mapping : IdpSessionIndex --> localSessionId
|
static CarbonSSOSessionManager |
getInstance()
Get the CarbonSSOSessionManager instance.
|
String |
getRequestedUrl(javax.servlet.http.HttpServletRequest request,
CarbonUIAuthenticator uiAuthenticator) |
boolean |
isSessionValid(String localSessionId)
Check whether a particular session is valid.
|
void |
makeSessionInvalid(String idPSessionIndex)
make a session invalid after receiving the single logout request from the identity provider
|
void |
removeInvalidSession(String localSessionId)
Remove invalid session from the invalid session map.
|
boolean |
skipAuthentication(javax.servlet.http.HttpServletRequest request)
Skips authentication for given URI's.
|
boolean |
skipSSOSessionInvalidation(javax.servlet.http.HttpServletRequest request,
CarbonUIAuthenticator uiAuthenticator)
This method checks whether the request is for a SSO authentication related page or servlet.
|
public static CarbonSSOSessionManager getInstance()
public void addSessionMapping(String idPSessionIndex, String localSessionId)
idPSessionIndex - session index sent along in the SAML ResponselocalSessionId - id of the current session established locally.public void makeSessionInvalid(String idPSessionIndex)
idPSessionIndex - session index established at the identity provider's endpublic boolean isSessionValid(String localSessionId)
localSessionId - session id established locallypublic void removeInvalidSession(String localSessionId)
localSessionId - SessionId established locallypublic boolean skipSSOSessionInvalidation(javax.servlet.http.HttpServletRequest request,
CarbonUIAuthenticator uiAuthenticator)
request - Request, HTTPServletRequestpublic boolean skipAuthentication(javax.servlet.http.HttpServletRequest request)
request - The request to access a page.true if request doesnt need to authenticate, else false.public String getRequestedUrl(javax.servlet.http.HttpServletRequest request, CarbonUIAuthenticator uiAuthenticator)
request - Copyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.