Class Saml2RelyingPartyInitiatedLogoutSuccessHandler

java.lang.Object
org.springframework.security.saml2.provider.service.web.authentication.logout.Saml2RelyingPartyInitiatedLogoutSuccessHandler
All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutSuccessHandler

public final class Saml2RelyingPartyInitiatedLogoutSuccessHandler extends Object implements org.springframework.security.web.authentication.logout.LogoutSuccessHandler
A success handler for issuing a SAML 2.0 Logout Request to the the SAML 2.0 Asserting Party
Since:
5.6
  • Constructor Details

  • Method Details

    • onLogoutSuccess

      public void onLogoutSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException
      Produce and send a SAML 2.0 Logout Response based on the SAML 2.0 Logout Request received from the asserting party
      Specified by:
      onLogoutSuccess in interface org.springframework.security.web.authentication.logout.LogoutSuccessHandler
      Parameters:
      request - the HTTP request
      response - the HTTP response
      authentication - the current principal details
      Throws:
      IOException - when failing to write to the response
    • setLogoutRequestRepository

      public void setLogoutRequestRepository(Saml2LogoutRequestRepository logoutRequestRepository)
      Use this Saml2LogoutRequestRepository for saving the SAML 2.0 Logout Request
      Parameters:
      logoutRequestRepository - the Saml2LogoutRequestRepository to use