Class LDSecurityContextRepository

java.lang.Object
com.logicaldoc.core.security.spring.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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    bindServletSession(String sid, javax.servlet.http.HttpServletRequest request)
     
    static void
    bindServletSession(String sid, javax.servlet.http.HttpSession servletSession)
     
    boolean
    containsContext(javax.servlet.http.HttpServletRequest request)
     
    static javax.servlet.http.HttpSession
     
    org.springframework.security.core.context.SecurityContext
    loadContext(org.springframework.security.web.context.HttpRequestResponseHolder request)
     
    void
    saveContext(org.springframework.security.core.context.SecurityContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LDSecurityContextRepository

      public LDSecurityContextRepository()
  • Method Details

    • 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)
    • bindServletSession

      public static void bindServletSession(String sid, javax.servlet.http.HttpSession servletSession)
    • getServletSession

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