Class CompositeLogoutHandler

java.lang.Object
org.springframework.security.web.authentication.logout.CompositeLogoutHandler
All Implemented Interfaces:
LogoutHandler

public final class CompositeLogoutHandler extends Object implements LogoutHandler
Performs a logout through all the LogoutHandler implementations. If any exception is thrown by logout(HttpServletRequest, HttpServletResponse, Authentication), no additional LogoutHandler are invoked.
Since:
4.2.0
  • Constructor Details

    • CompositeLogoutHandler

      public CompositeLogoutHandler(LogoutHandler... logoutHandlers)
    • CompositeLogoutHandler

      public CompositeLogoutHandler(List<LogoutHandler> logoutHandlers)
  • Method Details

    • logout

      public void logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication)
      Description copied from interface: LogoutHandler
      Causes a logout to be completed. The method must complete successfully.
      Specified by:
      logout in interface LogoutHandler
      Parameters:
      request - the HTTP request
      response - the HTTP response
      authentication - the current principal details