Class CompositeLogoutHandler
java.lang.Object
org.springframework.security.web.authentication.logout.CompositeLogoutHandler
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionCompositeLogoutHandler(List<LogoutHandler> logoutHandlers) CompositeLogoutHandler(LogoutHandler... logoutHandlers) -
Method Summary
Modifier and TypeMethodDescriptionvoidlogout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) Causes a logout to be completed.
-
Constructor Details
-
CompositeLogoutHandler
-
CompositeLogoutHandler
-
-
Method Details
-
logout
public void logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) Description copied from interface:LogoutHandlerCauses a logout to be completed. The method must complete successfully.- Specified by:
logoutin interfaceLogoutHandler- Parameters:
request- the HTTP requestresponse- the HTTP responseauthentication- the current principal details
-