public class SSOSessionManager extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp(org.jaggeryjs.hostobjects.web.SessionHostObject session,
String serviceProvider)
Removes the Service Provider session and IDP index details.This method should be called from a session destroy
listener.Please note that this method will not attempt to invalidate the session and will assume that
the session invalidate method has been already called.
|
static SSOSessionManager |
getInstance() |
void |
login(String idpSessionIndex,
String serviceProvider,
org.jaggeryjs.hostobjects.web.SessionHostObject session)
Registers the provided Session HostObject against the IDP session index.This
mapping is used to Single Logout all sessions when the logout method is called
|
void |
logout(org.jaggeryjs.hostobjects.web.SessionHostObject session,
String serviceProvider)
Handles the Single Logout operation by first resolving the session ID to a IDP session index
|
void |
logout(String idpSessionIndex,
String serviceProvider)
Handles the Single Logout operation by invalidating the sessions mapped
to the provided IDP session index.
|
void |
logoutClusteredNodes(String idpSessionIndex,
String serviceProvider)
Handles the Single Logout operation by invalidating the sessions mapped
to the provided IDP session index.It will
attempt to notify all members with a message indicating that any sessions registered
against the provided IDP session index should be invalidated.
|
public static SSOSessionManager getInstance()
public void login(String idpSessionIndex, String serviceProvider, org.jaggeryjs.hostobjects.web.SessionHostObject session)
idpSessionIndex - The IDP session index provided in the SAML login responsesession - A Session HostObjectpublic void logout(String idpSessionIndex, String serviceProvider)
idpSessionIndex - A String key which is provided in the SAML login response indicating IDP session indexpublic void logout(org.jaggeryjs.hostobjects.web.SessionHostObject session,
String serviceProvider)
session - public void cleanUp(org.jaggeryjs.hostobjects.web.SessionHostObject session,
String serviceProvider)
session - serviceProvider - public void logoutClusteredNodes(String idpSessionIndex, String serviceProvider)
idpSessionIndex - A String key which is provided in the SAML login response indicating IDP session indexCopyright © 2016 WSO2 Inc. All rights reserved.