public interface SecurityContextSource
getContext method is
 delegated to by the corresponding method of the
 Security class, 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
 by 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 getContext
 method to return a SecurityContext instance containing the
 snapshotted thread local values as well as the current access control
 context, with wrap methods implemented to return privileged
 action wrappers that properly restore the thread local state.
| Modifier and Type | Method and Description | 
|---|---|
| SecurityContext | getContext()Returns a snapshot of the current security context, which can be used to
 restore the context at a later time. | 
SecurityContext getContext()
Copyright © GigaSpaces.