public class SPSingleLogout extends Object
LogoutRequest
from SP to IDP.Modifier and Type | Method and Description |
---|---|
static void |
initiateLogoutRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
PrintWriter out,
String binding,
Map paramsMap,
LogoutRequest origLogoutRequest,
SOAPMessage msg,
Object newSession,
SAML2EventLogger audit)
Parses the request parameters and initiates the Logout
Request to be sent to the IDP.
|
static void |
initiateLogoutRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
PrintWriter out,
String binding,
Map paramsMap,
SAML2EventLogger auditor)
Parses the request parameters and initiates the Logout
Request to be sent to the IDP.
|
static void |
processLogoutRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
PrintWriter out,
String samlRequest,
String relayState)
Gets and processes the Single
LogoutRequest from IDP. |
static LogoutResponse |
processLogoutRequest(LogoutRequest logoutReq,
String spEntityID,
String realm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean isLBReq,
boolean destroySession,
String binding,
boolean isVerified)
Gets and processes the Single
LogoutRequest from IDP
and return LogoutResponse . |
static LogoutResponse |
processLogoutRequest(LogoutRequest logoutReq,
String spEntityID,
String realm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean isLBReq,
String binding,
boolean isVerified)
Gets and processes the Single
LogoutRequest from IDP
and return LogoutResponse . |
static Map<String,String> |
processLogoutResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String samlResponse,
String relayState)
Gets and processes the Single
LogoutResponse from IDP,
destroys the local session, checks response's issuer
and inResponseTo. |
public static void initiateLogoutRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PrintWriter out, String binding, Map paramsMap, SAML2EventLogger auditor) throws SAML2Exception
request
- the HttpServletRequest.response
- the HttpServletResponse.out
- The print writer for writing out presentation.binding
- binding used for this request.paramsMap
- Map of all other parameters.
Following parameters names with their respective
String values are allowed in this paramsMap.
"RelayState" - the target URL on successful Single Logout
"Destination" - A URI Reference indicating the address to
which the request has been sent.
"Consent" - Specifies a URI a SAML defined identifier
known as Consent Identifiers.
"Extension" - Specifies a list of Extensions as list of
String objects.auditor
- the auditor for logging SAML2 Events - may be nullSAML2Exception
- if error initiating request to IDP.public static void initiateLogoutRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PrintWriter out, String binding, Map paramsMap, LogoutRequest origLogoutRequest, SOAPMessage msg, Object newSession, SAML2EventLogger audit) throws SAML2Exception
request
- the HttpServletRequest.response
- the HttpServletResponse.out
- The print writer for writing out presentation.binding
- binding used for this request.paramsMap
- Map of all other parameters.
Following parameters names with their respective
String values are allowed in this paramsMap.
"RelayState" - the target URL on successful Single Logout
"Destination" - A URI Reference indicating the address to
which the request has been sent.
"Consent" - Specifies a URI a SAML defined identifier
known as Consent Identifiers.
"Extension" - Specifies a list of Extensions as list of
String objects.origLogoutRequest
- original LogoutRequestmsg
- SOAPMessagenewSession
- Session object for IDP Proxyaudit
- the auditor for logging SAML2 Events - may be nullSAML2Exception
- if error initiating request to IDP.public static Map<String,String> processLogoutResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String samlResponse, String relayState) throws SAML2Exception, SessionException
LogoutResponse
from IDP,
destroys the local session, checks response's issuer
and inResponseTo.request
- the HttpServletRequest.response
- the HttpServletResponse.samlResponse
- LogoutResponse
in the
XML string format.relayState
- the target URL on successful
LogoutResponse
.SAML2Exception
- if error processing
LogoutResponse
.SessionException
- if error processing
LogoutResponse
.public static void processLogoutRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PrintWriter out, String samlRequest, String relayState) throws SAML2Exception, SessionException
LogoutRequest
from IDP.request
- the HttpServletRequest.response
- the HttpServletResponse.out
- the print writer for writing out presentationsamlRequest
- LogoutRequest
in the
XML string format.relayState
- the target URL on successful
LogoutRequest
.SAML2Exception
- if error processing
LogoutRequest
.SessionException
- if error processing
LogoutRequest
.public static LogoutResponse processLogoutRequest(LogoutRequest logoutReq, String spEntityID, String realm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean isLBReq, String binding, boolean isVerified)
LogoutRequest
from IDP
and return LogoutResponse
.logoutReq
- LogoutRequest
from IDPspEntityID
- name of host entity ID.realm
- name of host entity.request
- HTTP servlet request.response
- HTTP servlet response.isLBReq
- true if the request is for load balancing.binding
- value of SAML2Constants.HTTP_REDIRECT
or
SAML2Constants.SOAP
.isVerified
- true if the request is verified already.LogoutRequest
.public static LogoutResponse processLogoutRequest(LogoutRequest logoutReq, String spEntityID, String realm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean isLBReq, boolean destroySession, String binding, boolean isVerified)
LogoutRequest
from IDP
and return LogoutResponse
.logoutReq
- LogoutRequest
from IDPspEntityID
- name of host entity ID.realm
- name of host entity.request
- HTTP servlet request.response
- HTTP servlet response.isLBReq
- true if the request is for load balancing.binding
- value of SAML2Constants.HTTP_REDIRECT
or
SAML2Constants.SOAP
.isVerified
- true if the request is verified already.LogoutRequest
.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.