Package org.mockserver.saml
Class SamlSloCallback
java.lang.Object
org.mockserver.saml.SamlSloCallback
- All Implemented Interfaces:
ExpectationCallback<HttpResponse>,ExpectationResponseCallback
Mock SAML 2.0 IdP Single-Logout (SLO) endpoint implementing the HTTP-POST profile.
Accepts a LogoutRequest (read from the query string or the
application/x-www-form-urlencoded body, mirroring SamlSsoCallback), builds a freshly
signed <LogoutResponse> (see SamlLogoutResponseBuilder), base64-encodes it, and
returns a self-submitting HTML form that POSTs the SAMLResponse (and the echoed
RelayState, if supplied) to the SP's Single-Logout service URL.
The LogoutRequest ID is extracted with the same XXE-hardened, root-element-only parsing
as the SSO callback and echoed as InResponseTo.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle(HttpRequest request) Called for every request when expectation condition has been satisfied.
-
Constructor Details
-
SamlSloCallback
public SamlSloCallback()
-
-
Method Details
-
handle
Description copied from interface:ExpectationResponseCallbackCalled for every request when expectation condition has been satisfied. The request that satisfied the expectation condition is passed as the parameter and the return value is the request that will be returned.- Specified by:
handlein interfaceExpectationCallback<HttpResponse>- Specified by:
handlein interfaceExpectationResponseCallback- Parameters:
request- the request that satisfied the expectation condition- Returns:
- the response that will be returned
-