From bb4d81886284ae84462cd58078595ca24bf61cbe Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Sat, 22 Aug 2009 13:31:13 +0000 Subject: [PATCH] SEC-1188: Added "getContexHolderStrategy" method to SecurityContextHolder. --- .../security/core/context/SecurityContextHolder.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/java/org/springframework/security/core/context/SecurityContextHolder.java b/core/src/main/java/org/springframework/security/core/context/SecurityContextHolder.java index e5aa100399..c6122d527d 100644 --- a/core/src/main/java/org/springframework/security/core/context/SecurityContextHolder.java +++ b/core/src/main/java/org/springframework/security/core/context/SecurityContextHolder.java @@ -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. */