public class SimpleSecurityContextProvider extends Object implements SecurityContextProvider
SecurityContextProvider
implementation.Constructor and Description |
---|
SimpleSecurityContextProvider()
Construct a new
SimpleSecurityContextProvider instance. |
SimpleSecurityContextProvider(AccessControlContext acc)
Construct a new
SimpleSecurityContextProvider instance. |
Modifier and Type | Method and Description |
---|---|
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(@Nullable 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 AccessControlContext getAccessControlContext()
SecurityContextProvider
getAccessControlContext
in interface SecurityContextProvider