public interface SecurityContextSource
getContextmethod is delegated to by the corresponding method of the
Securityclass, with precedence given to the security manager.
This interface is intended to be implemented by security managers and policy
providers whose security contexts include state in addition to that provided
AccessControlContext. For example, a security
policy provider that considers thread local values when evaluating security
checks may want to include those values in snapshots of the current security
context, so that they can be properly restored when the context is
reapplied--it can achieve this by implementing the
method to return a
SecurityContext instance containing the
snapshotted thread local values as well as the current access control
wrap methods implemented to return privileged
action wrappers that properly restore the thread local state.
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.