Package org.mockserver.saml
Class SamlLogoutResponseBuilder
java.lang.Object
org.mockserver.saml.SamlLogoutResponseBuilder
Builds and enveloped-signs a SAML 2.0
<LogoutResponse> for the Single-Logout (SLO)
HTTP-POST profile, using only the JDK XML APIs and the JDK XML Digital Signature API (no
OpenSAML dependency), mirroring SamlResponseBuilder.
The <LogoutResponse> envelope itself is enveloped-signed (the <ds:Signature>
is inserted immediately after its <Issuer>, where the SAML schema requires it), with the
signing certificate embedded in <ds:KeyInfo>/<ds:X509Data>, so the SP can validate the
signature against the certificate published in the IdP metadata.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSignedLogoutResponse(SamlAssertionStore.Provider provider, String inResponseTo) Builds a signed SAML LogoutResponse.
-
Constructor Details
-
SamlLogoutResponseBuilder
public SamlLogoutResponseBuilder()
-
-
Method Details
-
buildSignedLogoutResponse
Builds a signed SAML LogoutResponse.- Parameters:
provider- the mock IdP provider state (supplies issuer, SLO destination, credential)inResponseTo- theIDof the SP'sLogoutRequestto echo, ornull- Returns:
- the serialized, signed
<LogoutResponse>XML
-