Class LDSecurityContextRepository

  • All Implemented Interfaces:
    org.springframework.security.web.context.SecurityContextRepository

    public class LDSecurityContextRepository
    extends Object
    implements org.springframework.security.web.context.SecurityContextRepository
    This repository avoid the use of sessions and simply use the current request to store and retrieve the session ID.
    Since:
    7.5
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • LDSecurityContextRepository

        public LDSecurityContextRepository()
    • Method Detail

      • containsContext

        public boolean containsContext​(javax.servlet.http.HttpServletRequest request)
        Specified by:
        containsContext in interface org.springframework.security.web.context.SecurityContextRepository
      • loadContext

        public org.springframework.security.core.context.SecurityContext loadContext​(org.springframework.security.web.context.HttpRequestResponseHolder request)
        Specified by:
        loadContext in interface org.springframework.security.web.context.SecurityContextRepository
      • saveContext

        public void saveContext​(org.springframework.security.core.context.SecurityContext context,
                                javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
        Specified by:
        saveContext in interface org.springframework.security.web.context.SecurityContextRepository
      • bindServletSession

        public static void bindServletSession​(String sid,
                                              javax.servlet.http.HttpServletRequest request)
      • getServletSession

        public static javax.servlet.http.HttpSession getServletSession​(String sid)