public class SimpleSecurityContextProvider extends java.lang.Object implements SecurityContextProvider
SecurityContextProvider
implementation.Modifier and Type | Field and Description |
---|---|
private java.security.AccessControlContext |
acc |
Constructor and Description |
---|
SimpleSecurityContextProvider()
Construct a new
SimpleSecurityContextProvider instance. |
SimpleSecurityContextProvider(java.security.AccessControlContext acc)
Construct a new
SimpleSecurityContextProvider instance. |
Modifier and Type | Method and Description |
---|---|
java.security.AccessControlContext |
getAccessControlContext()
Provides a security access control context relevant to a bean factory.
|
public SimpleSecurityContextProvider()
SimpleSecurityContextProvider
instance.
The security context will be retrieved on each call from the current thread.
public SimpleSecurityContextProvider(java.security.AccessControlContext acc)
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()
public java.security.AccessControlContext getAccessControlContext()
SecurityContextProvider
getAccessControlContext
in interface SecurityContextProvider