mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-30 16:52:13 +00:00
SEC-1188: Added "getContexHolderStrategy" method to SecurityContextHolder.
This commit is contained in:
parent
c59f786919
commit
bb4d818862
@ -134,6 +134,15 @@ public class SecurityContextHolder {
|
||||
initialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows retrieval of the context strategy. See SEC-1188.
|
||||
*
|
||||
* @return the configured strategy for storing the security context.
|
||||
*/
|
||||
public static SecurityContextHolderStrategy getContextHolderStrategy() {
|
||||
return strategy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delegates the creation of a new, empty context to the configured strategy.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user