API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security. AccessControlContext View Source
Author(s)
Roland Schemers
Since
Version
Serial
Hierarchy
 Object
      AccessControlContext
Implements
Subclasses
Description
publicfinal class AccessControlContext
  An AccessControlContext is used to make system resource access decisions based on the context it encapsulates.
See also:    AccessController
Constructors
public AccessControlContext (AccessControlContext acc, DomainCombiner combiner)
  Create a new AccessControlContext with the given AccessControlContext and DomainCombiner.
public AccessControlContext (ProtectionDomain context)
  Create an AccessControlContext with the given set of ProtectionDomains.
pack-private AccessControlContext (ProtectionDomain context, boolean isPrivileged)
package private constructor for AccessController.getContext()
pack-private AccessControlContext (ProtectionDomain context, DomainCombiner combiner)
package private for AccessController
Methods
Hide/Show inherited methods
public void checkPermission (Permission perm) throws AccessControlException
  Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect, and the context in this object.
public boolean equals (Object obj)
  Checks two AccessControlContext objects for equality.
pack-private DomainCombiner getAssignedCombiner ()
get the assigned combiner from the privileged or inherited context
pack-privatestatic sun.security.util.Debug getDebug ()
public DomainCombiner getDomainCombiner ()
  Get the DomainCombiner associated with this AccessControlContext.
public int hashCode ()
  Returns the hash code value for this context.
pack-private boolean isPrivileged ()
Returns true if this context is privileged.
pack-private AccessControlContext optimize ()
Take the stack-based context (this) and combine it with the privileged or inherited context, if need be.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar