Class ForwardLogoutSuccessHandler

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

public class ForwardLogoutSuccessHandler extends Object implements LogoutSuccessHandler
LogoutSuccessHandler implementation that will perform a request dispatcher "forward" to the specified target URL.
Since:
5.0
  • Constructor Details

    • ForwardLogoutSuccessHandler

      public ForwardLogoutSuccessHandler(String targetUrl)
      Construct a new ForwardLogoutSuccessHandler with the given target URL.
      Parameters:
      targetUrl - the target URL
  • Method Details

    • onLogoutSuccess

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