Class DelegatingLogoutSuccessHandler
java.lang.Object
org.springframework.security.web.authentication.logout.DelegatingLogoutSuccessHandler
- All Implemented Interfaces:
LogoutSuccessHandler
Delegates to logout handlers based on matched request matchers
- Since:
- 4.1
-
Constructor Summary
ConstructorDescriptionDelegatingLogoutSuccessHandler
(LinkedHashMap<RequestMatcher, LogoutSuccessHandler> matcherToHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onLogoutSuccess
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) void
setDefaultLogoutSuccessHandler
(LogoutSuccessHandler defaultLogoutSuccessHandler) Sets the defaultLogoutSuccessHandler
if no other handlers available
-
Constructor Details
-
DelegatingLogoutSuccessHandler
public DelegatingLogoutSuccessHandler(LinkedHashMap<RequestMatcher, LogoutSuccessHandler> matcherToHandler)
-
-
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 interfaceLogoutSuccessHandler
- Throws:
IOException
jakarta.servlet.ServletException
-
setDefaultLogoutSuccessHandler
Sets the defaultLogoutSuccessHandler
if no other handlers available- Parameters:
defaultLogoutSuccessHandler
- the defaultLogoutSuccessHandler to set
-