Example usage for Java org.springframework.security.core.context SecurityContextHolder fields, constructors, methods, implement or subclass
The text is from its open source code.
String | MODE_INHERITABLETHREADLOCAL |
String | MODE_GLOBAL |
void | clearContext() Explicitly clears the context value from the current thread. |
SecurityContext | createEmptyContext() Delegates the creation of a new, empty context to the configured strategy. |
SecurityContext | getContext() Obtain the current SecurityContext . |
SecurityContextHolderStrategy | getContextHolderStrategy() Allows retrieval of the context strategy. |
void | setContext(SecurityContext context) Associates a new SecurityContext with the current thread of execution. |
void | setStrategyName(String strategyName) Changes the preferred strategy. |