소스 검색

SEC-1188: Added "getContexHolderStrategy" method to SecurityContextHolder.

Luke Taylor 16 년 전
부모
커밋
bb4d818862
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      core/src/main/java/org/springframework/security/core/context/SecurityContextHolder.java

+ 9 - 0
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.
      */