public class SingleLogoutManager extends Object
SingleLogoutManager
class provides methods to perform
single logout cross multiple federation protocols. This method
doIDPSingleLogout
need to be invoked by identity providers
after finishing processing its protocol specific single logout logics and
before destroying the local session(s).Modifier and Type | Field and Description |
---|---|
static String |
IDFF
Constant for ID-FF Protocol
|
static int |
LOGOUT_FAILED_STATUS
Status code for logout failure
|
static int |
LOGOUT_NO_ACTION_STATUS
Status code for no logout action performed.
|
static int |
LOGOUT_PARTIAL_STATUS
Status code for partial logout success
|
static int |
LOGOUT_REDIRECTED_STATUS
Status code for logout request being redirected
|
static int |
LOGOUT_SUCCEEDED_STATUS
Status code for logout success
|
static String |
SAML2
Constant for SAML2 protocol
|
static String |
STATUS_PARAM
Constant for logout status parameter name
|
static String |
WS_FED
Constant for WS-Federation protocol
|
Modifier and Type | Method and Description |
---|---|
int |
doIDPSingleLogout(Set userSession,
String userID,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean isSOAPInitiated,
boolean isIDPInitiated,
String protocol,
String realm,
String idpEntityID,
String spEntityID,
String relayState,
String singleLogoutRequestXML,
String singleLogoutResponseXML,
int currentStatus)
Performs single logout cross multiple federation protocols.
|
static SingleLogoutManager |
getInstance()
Returns SingleLogoutManager singleton instance.
|
public static final int LOGOUT_SUCCEEDED_STATUS
public static final int LOGOUT_PARTIAL_STATUS
public static final int LOGOUT_FAILED_STATUS
public static final int LOGOUT_REDIRECTED_STATUS
public static final int LOGOUT_NO_ACTION_STATUS
public static final String SAML2
public static final String IDFF
public static final String WS_FED
public static final String STATUS_PARAM
public static SingleLogoutManager getInstance()
public int doIDPSingleLogout(Set userSession, String userID, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean isSOAPInitiated, boolean isIDPInitiated, String protocol, String realm, String idpEntityID, String spEntityID, String relayState, String singleLogoutRequestXML, String singleLogoutResponseXML, int currentStatus) throws Exception
userSession
- Set of user session objects (java.lang.Object) to be
logout.userID
- Universal identifier of the user to be logout.request
- HTTP servlet request object of the request.response
- HTTP servlet response object of the request.isSOAPInitiated
- True means original single logout request is
initiated using SOAP binding, false means the original single logout
request is initiated using HTTP binding.isIDPInitiated
- True means this is identity provider initiated
single logout, false means this is service provider initiated single
logout.protocol
- The protocol of the original single logout.
Possible values for this parameter:
SAML2 - single logout initiated using SAMLv2 protocol
IDFF - single logout initiated using ID-FF protocol
WS_FED - single logout initiated using WS-Federation protocolrealm
- Realm of the hosted entity.idpEntityID
- EntityID
of the hosted identity provider
in the original Single Logout request.spEntityID
- EntityID
of the remote service provider
in the original Single Logout request.relayState
- A state information to be relayed back in response.singleLogoutRequestXML
- Original single logout request in XML
string.singleLogoutResponseXML
- Logout response to be sent back to SP.
This only apply to the case of SP initiated Single Logout, it will
be null in case of IDP initiated single logout.currentStatus
- Current logout status, this is the single logout
status for the federation protocol just processed.
Possible values:
LOGOUT_SUCCEEDED_STATUS
- single logout succeeded.
LOGOUT_FAILED_STATUS
- single logout failed.
LOGOUT_PARTIAL_STATUS
- single logout partially
succeeded.LOGOUT_SUCCEEDED_STATUS
- single logout succeeded.
LOGOUT_FAILED_STATUS
- single logout failed.
LOGOUT_PARTIAL_STATUS
- single logout partially
succeeded.
LOGOUT_REDIRECTED_STATUS
- single logout request
redirected.
LOGOUT_NO_ACTION_STATUS
- single loglout not
performed.Exception
- if error occurs when processing the protocol.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.