java.security
public final class AccessControlContext extends Object
Since: 1.2
Constructor Summary | |
---|---|
AccessControlContext(ProtectionDomain[] context)
Construct a new AccessControlContext with the specified
ProtectionDomains. | |
AccessControlContext(AccessControlContext acc, DomainCombiner combiner)
Construct a new AccessControlContext with the specified
{@link ProtectionDomain}s and {@link DomainCombiner}.
|
Method Summary | |
---|---|
void | checkPermission(Permission perm)
Determines whether or not the specific permission is granted
depending on the context it is within.
|
boolean | equals(Object obj)
Checks if two AccessControlContexts are equal.
|
DomainCombiner | getDomainCombiner()
Returns the Domain Combiner associated with the AccessControlContext
|
int | hashCode()
Computes a hash code of this class
|
context
must not be
null and duplicates will be removed.
Parameters: context The ProtectionDomains to use
Code calling this constructor must have a {@link SecurityPermission} of createAccessControlContext.
Throws: SecurityException If the caller does not have permission to create an access control context.
Since: 1.3
Parameters: perm a permission to check
Throws: AccessControlException if the permssion is not permitted
Parameters: obj The object to compare this class to
Returns: true if equal, false otherwise
Returns: the DomainCombiner
Returns: a hash code representing this class