Class DelegatingLogoutSuccessHandler

java.lang.Object
org.springframework.security.web.authentication.logout.DelegatingLogoutSuccessHandler
All Implemented Interfaces:
LogoutSuccessHandler

public class DelegatingLogoutSuccessHandler extends Object implements LogoutSuccessHandler
Delegates to logout handlers based on matched request matchers
Since:
4.1
  • Constructor Details

  • Method Details

    • onLogoutSuccess

      public void onLogoutSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) throws IOException, jakarta.servlet.ServletException
      Specified by:
      onLogoutSuccess in interface LogoutSuccessHandler
      Throws:
      IOException
      jakarta.servlet.ServletException
    • setDefaultLogoutSuccessHandler

      public void setDefaultLogoutSuccessHandler(LogoutSuccessHandler defaultLogoutSuccessHandler)
      Sets the default LogoutSuccessHandler if no other handlers available
      Parameters:
      defaultLogoutSuccessHandler - the defaultLogoutSuccessHandler to set