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 Type
    Method
    Description
    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.
    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.
  • 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 request
      authentication - 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 request
      authentication - the current user
      authenticationException - the thrown exception when the logout request was processed
      Returns:
      a signed and serialized SAML 2.0 Logout Response, or null if it cannot generate a SAML 2.0 Error Logout Response
      Since:
      7.0