Package com.openkm.auth
Class CustomLogoutSuccessHandler
- java.lang.Object
-
- org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
-
- org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler
-
- com.openkm.auth.CustomLogoutSuccessHandler
-
- All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutSuccessHandler
@Service("customLogoutSuccessHandler") public class CustomLogoutSuccessHandler extends org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandlerThis class extends and implements spring-security classes to intercept and handle the logout process in order to execute custom actions, for example, to evict cache of logged out user and to control the template to see after a successful logout
-
-
Constructor Summary
Constructors Constructor Description CustomLogoutSuccessHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonLogoutSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)-
Methods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
determineTargetUrl, determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
-
-
-
-
Method Detail
-
onLogoutSuccess
public void onLogoutSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException- Specified by:
onLogoutSuccessin interfaceorg.springframework.security.web.authentication.logout.LogoutSuccessHandler- Overrides:
onLogoutSuccessin classorg.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler- Throws:
IOException
-
-