The reference implementation must be used if the reference implementation of AccessController is used.
An AccessControlContext encapsulates the information which is needed by class AccessController to detect if a Permission would be granted at a particular point in a programs execution.
Public Member Functions | |
AccessControlContext (ProtectionDomain[] context) | |
Constructs a new instance of this class given an array of protection domains. | |
AccessControlContext (AccessControlContext acc, DomainCombiner combiner) | |
Constructs a new instance of this class given a context and a DomainCombiner. | |
void | checkPermission (Permission perm) throws AccessControlException |
Checks if the permission perm is allowed in this context. | |
boolean | equals (Object o) |
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. | |
int | hashCode () |
Answers an integer hash code for the receiver. | |
DomainCombiner | getDomainCombiner () |
Answers the DomainCombiner for the receiver. | |
Package Functions | |
AccessControlContext (ProtectionDomain[] context, boolean ignored) | |
Package Attributes | |
DomainCombiner | domainCombiner |
ProtectionDomain[] | domainsArray |
Static Private Attributes | |
static final SecurityPermission | createAccessControlContext |
static final SecurityPermission | getDomainCombiner |
|
Constructs a new instance of this class given an array of protection domains.
|
|
Constructs a new instance of this class given a context and a DomainCombiner.
|
|
Checks if the permission All ProtectionDomains must grant the permission for it to be granted.
|
|
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. In this case, they must both be AccessControlContexts and contain the same protection domains.
|
|
Answers an integer hash code for the receiver.
Any two objects which answer
|
|
Answers the DomainCombiner for the receiver.
|
|
Initial value: new SecurityPermission( "createAccessControlContext") |
|
Initial value: new SecurityPermission( "getDomainCombiner") |