Interface Saml2LogoutResponseResolver
- All Known Implementing Classes:
OpenSaml5LogoutResponseResolver
public interface Saml2LogoutResponseResolver
Creates a signed SAML 2.0 Logout Response based on information from the
HttpServletRequest and current Authentication.
The returned logout response is suitable for sending to the asserting party based on,
for example, the location and binding specified in
RelyingPartyRegistration.getAssertingPartyMetadata().- Since:
- 5.6
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable Saml2LogoutResponseresolve(jakarta.servlet.http.HttpServletRequest request, @Nullable org.springframework.security.core.Authentication authentication) Prepare to create, sign, and serialize a SAML 2.0 Logout Response.default @Nullable Saml2LogoutResponseresolve(jakarta.servlet.http.HttpServletRequest request, @Nullable org.springframework.security.core.Authentication authentication, Saml2AuthenticationException authenticationException) Prepare to create, sign, and serialize a SAML 2.0 Error Logout Response.
-
Method Details
-
resolve
@Nullable Saml2LogoutResponse resolve(jakarta.servlet.http.HttpServletRequest request, @Nullable org.springframework.security.core.Authentication authentication) Prepare to create, sign, and serialize a SAML 2.0 Logout Response.- Parameters:
request- the HTTP requestauthentication- the current user- Returns:
- a signed and serialized SAML 2.0 Logout Response
-
resolve
default @Nullable Saml2LogoutResponse resolve(jakarta.servlet.http.HttpServletRequest request, @Nullable org.springframework.security.core.Authentication authentication, Saml2AuthenticationException authenticationException) Prepare to create, sign, and serialize a SAML 2.0 Error Logout Response.- Parameters:
request- the HTTP requestauthentication- the current userauthenticationException- the thrown exception when the logout request was processed- Returns:
- a signed and serialized SAML 2.0 Logout Response, or
nullif it cannot generate a SAML 2.0 Error Logout Response - Since:
- 7.0
-