|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.context.InheritableThreadLocalSecurityContextHolderStrategy
public class InheritableThreadLocalSecurityContextHolderStrategy
An InheritableThreadLocal
-based implementation of SecurityContextHolderStrategy
.
ThreadLocal
,
HttpSessionContextIntegrationFilter
Constructor Summary | |
---|---|
InheritableThreadLocalSecurityContextHolderStrategy()
|
Method Summary | |
---|---|
void |
clearContext()
Clears the current context. |
SecurityContext |
getContext()
Obtains the current context. |
void |
setContext(SecurityContext context)
Sets the current context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InheritableThreadLocalSecurityContextHolderStrategy()
Method Detail |
---|
public void clearContext()
SecurityContextHolderStrategy
clearContext
in interface SecurityContextHolderStrategy
public SecurityContext getContext()
SecurityContextHolderStrategy
getContext
in interface SecurityContextHolderStrategy
null
- create a default implementation if necessary)public void setContext(SecurityContext context)
SecurityContextHolderStrategy
setContext
in interface SecurityContextHolderStrategy
context
- to the new argument (should never be null
, although implementations must check if
null
has been passed and throw an IllegalArgumentException
in such cases)
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |