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
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
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)
-
Constructor Details
-
LDSecurityContextRepository
public LDSecurityContextRepository()
-
-
Method Details
-
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
-
bindServletSession
-
getServletSession
-