Class CustomLogoutHandler

java.lang.Object
org.dspace.app.rest.security.CustomLogoutHandler
All Implemented Interfaces:
LogoutHandler

@Component public class CustomLogoutHandler extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      logout in interface LogoutHandler
      Parameters:
      httpServletRequest -
      httpServletResponse -
      authentication -