org.springframework.beans.factory.support

## 类 SimpleSecurityContextProvider

- java.lang.Object
- - org.springframework.beans.factory.support.SimpleSecurityContextProvider

- 所有已实现的接口:
    SecurityContextProvider

      public class SimpleSecurityContextProvider
      extends Object
      implements SecurityContextProvider

  Simple `SecurityContextProvider` implementation.
  从以下版本开始:
    3.0
  作者:
    Costin Leau

- - ### 构造器概要

    构造器
    构造器和说明
    `SimpleSecurityContextProvider()` Construct a new `SimpleSecurityContextProvider` instance.
    `SimpleSecurityContextProvider(AccessControlContext acc)` Construct a new `SimpleSecurityContextProvider` instance.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `AccessControlContext` | `getAccessControlContext()` Provides a security access control context relevant to a bean factory.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### SimpleSecurityContextProvider

          public SimpleSecurityContextProvider()

      Construct a new `SimpleSecurityContextProvider` instance.

      The security context will be retrieved on each call from the current thread.

    - #### SimpleSecurityContextProvider

          public SimpleSecurityContextProvider(@Nullable
                                               AccessControlContext acc)

      Construct a new `SimpleSecurityContextProvider` instance.

      If the given control context is null, the security context will be retrieved on each call from the current thread.

      参数:
        `acc` - access control context (can be `null`)
      另请参阅:
        `AccessController.getContext()`

  - ### 方法详细资料

    - #### getAccessControlContext

          public AccessControlContext getAccessControlContext()

      从接口复制的说明: `SecurityContextProvider`
      Provides a security access control context relevant to a bean factory.
      指定者:
        `getAccessControlContext` 在接口中 `SecurityContextProvider`
      返回:
        bean factory security control context