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 LDSecurityContextRepository()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
bindServletSession(String sid, javax.servlet.http.HttpServletRequest request)
boolean
containsContext(javax.servlet.http.HttpServletRequest request)
static javax.servlet.http.HttpSession
getServletSession(String sid)
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)
-
-
-
Method Detail
-
containsContext
public boolean containsContext(javax.servlet.http.HttpServletRequest request)
- Specified by:
containsContext
in interfaceorg.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 interfaceorg.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 interfaceorg.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)
-
-