Class CompositeLogoutHandler
- java.lang.Object
-
- org.springframework.security.web.authentication.logout.CompositeLogoutHandler
-
- All Implemented Interfaces:
LogoutHandler
public final class CompositeLogoutHandler extends java.lang.Object implements LogoutHandler
Performs a logout through all theLogoutHandler
implementations. If any exception is thrown bylogout(HttpServletRequest, HttpServletResponse, Authentication)
, no additional LogoutHandler are invoked.- Since:
- 4.2.0
-
-
Constructor Summary
Constructors Constructor Description CompositeLogoutHandler(java.util.List<LogoutHandler> logoutHandlers)
CompositeLogoutHandler(LogoutHandler... logoutHandlers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Authentication authentication)
Causes a logout to be completed.
-
-
-
Constructor Detail
-
CompositeLogoutHandler
public CompositeLogoutHandler(LogoutHandler... logoutHandlers)
-
CompositeLogoutHandler
public CompositeLogoutHandler(java.util.List<LogoutHandler> logoutHandlers)
-
-
Method Detail
-
logout
public void logout(javax.servlet.http.HttpServletRequest request, javax.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 interfaceLogoutHandler
- Parameters:
request
- the HTTP requestresponse
- the HTTP responseauthentication
- the current principal details
-
-