Package org.dspace.app.rest.security
Class CustomLogoutHandler
java.lang.Object
org.dspace.app.rest.security.CustomLogoutHandler
- All Implemented Interfaces:
LogoutHandler
Custom logout handler to support stateless sessions
- Author:
- Frederic Van Reet (frederic dot vanreet at atmire dot com), Tom Desair (tom dot desair at atmire dot com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlogout(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, Authentication authentication) This method removes the session salt from an eperson, this way the token won't be verified anymore
-
Constructor Details
-
CustomLogoutHandler
public CustomLogoutHandler()
-
-
Method Details
-
logout
public void logout(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, Authentication authentication) This method removes the session salt from an eperson, this way the token won't be verified anymore- Specified by:
logoutin interfaceLogoutHandler- Parameters:
httpServletRequest-httpServletResponse-authentication-
-