Deprecated
for removal since 17.
This class was only useful in conjunction with the the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.
AccessControlContext was used with the Security Manager for access
control decisions based on context that it encapsulated. This feature no
longer exists.
| Modifier and Type | Field and Description |
|---|---|
| private DomainCombiner | combiner
References Deprecated
DomainCombiner is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private ProtectionDomain[] |
| Access | Constructor and Description |
|---|---|
| public | AccessControlContext(ProtectionDomain[]
the context)ProtectionDomain objects associated with this
context. The non-duplicate domains are copied from the array. Subsequent
changes to the array will not affect this AccessControlContext.Create an |
| public | AccessControlContext(AccessControlContext
the acc, DomainCombiner AccessControlContext associated
with the provided DomainCombiner.the combiner)DomainCombiner to be associated
with the provided AccessControlContext.
References Deprecated
AccessControlContext and DomainCombiner are deprecated or reference (maybe indirectly) at least one deprecated element.
Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static boolean | |
| private boolean | equalContext(AccessControlContext that)
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private boolean | |
| public boolean | Returns: true if obj is an AccessControlContext,
and has the same set of ProtectionDomain objects as this context,
false otherwise.the object we are testing for equality with this object. obj)Overrides java. Checks two |
| public DomainCombiner | Returns: theDomainCombiner associated with this
AccessControlContext, or null
if there is none.
References Deprecated
DomainCombiner is deprecated or references (maybe indirectly) at least one deprecated element.
Get the |
| public int | Returns: the hash code value for this contextOverrides java. Returns the hash code value for this context. |
| combiner | back to summary |
|---|---|
| private DomainCombiner combiner
References Deprecated
See corresponding docs for further information.
| |
| context | back to summary |
|---|---|
| private ProtectionDomain[] context | |
| AccessControlContext | back to summary |
|---|---|
| public AccessControlContext(ProtectionDomain[] context) Create an
| |
| AccessControlContext | back to summary |
|---|---|
| public AccessControlContext(AccessControlContext acc, DomainCombiner combiner)
References Deprecated
See corresponding docs for further information. Create a new
| |
| checkPermission | back to summary |
|---|---|
| public void checkPermission(Permission perm) throws AccessControlException Throws
| |
| containsAllPDs | back to summary |
|---|---|
| private static boolean containsAllPDs(ProtectionDomain[] thisContext, ProtectionDomain[] thatContext) | |
| equalContext | back to summary |
|---|---|
| private boolean equalContext(AccessControlContext that)
References Deprecated
See corresponding docs for further information. | |
| equalPDs | back to summary |
|---|---|
| private boolean equalPDs(ProtectionDomain[] a, ProtectionDomain[] b) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Checks two | |
| getDomainCombiner | back to summary |
|---|---|
| public DomainCombiner getDomainCombiner()
References Deprecated
See corresponding docs for further information. Get the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code value for this context. The hash code is computed by exclusive or-ing the hash code of all the protection domains in the context together.
| |