Java™ Platform
Standard Ed. 8
compact1, compact2, compact3
java.security
Class AccessControlContext
-
-
Method Summary
All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
void |
checkPermission(Permission perm) |
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.
|
boolean |
equals(Object obj) |
Checks two AccessControlContext objects for equality.
|
DomainCombiner |
getDomainCombiner() |
Get the DomainCombiner associated with this
AccessControlContext.
|
int |
hashCode() |
Returns the hash code value for this context.
|
-
-
Constructor Detail
-
AccessControlContext
public AccessControlContext(ProtectionDomain[] context)
Create an AccessControlContext with the given array of ProtectionDomains.
Context must not be null. Duplicate domains will be removed from the
context.
- Parameters:
context - the ProtectionDomains associated with this context.
The non-duplicate domains are copied from the array. Subsequent
changes to the array will not affect this AccessControlContext.
- Throws:
NullPointerException - if context is null
Java™ Platform
Standard Ed. 8
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.