Class AccessControlContext
java.lang.Object
java.security.AccessControlContext
Deprecated, for removal: This API element is subject to removal in a future version.
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.
-
Constructor Summary
ConstructorsConstructorDescriptionAccessControlContext(AccessControlContext acc, DomainCombiner combiner) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new instance of this class given a context and a DomainCombinerAccessControlContext(ProtectionDomain[] fromContext) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new instance of this class given an array of protection domains. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckPermission(Permission perm) Deprecated, for removal: This API element is subject to removal in a future version.Throws java.security.AccessControlExceptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.Deprecated, for removal: This API element is subject to removal in a future version.Answers the DomainCombiner for the receiver.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Answers an integer hash code for the receiver.Methods declared in class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.toString()Answers a string containing a concise, human-readable description of the receiver.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Constructor Details
-
AccessControlContext
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new instance of this class given an array of protection domains.- Parameters:
fromContext- the array of ProtectionDomain- Throws:
NullPointerException- if fromContext is null
-
AccessControlContext
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new instance of this class given a context and a DomainCombiner- Parameters:
acc- the AccessControlContextcombiner- the DomainCombiner- Throws:
AccessControlException- thrown when the caller doesn't have the "createAccessControlContext" SecurityPermissionNullPointerException- if the provided context is null.
-
-
Method Details
-
checkPermission
Deprecated, for removal: This API element is subject to removal in a future version.Throws java.security.AccessControlException- Parameters:
perm- is ignored- Throws:
AccessControlException- is always thrown
-
equals
Deprecated, for removal: This API element is subject to removal in a future version.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. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.Answers an integer hash code for the receiver. Any two objects which answertruewhen passed toequalsmust answer the same value for this method. -
getDomainCombiner
Deprecated, for removal: This API element is subject to removal in a future version.Answers the DomainCombiner for the receiver.- Returns:
- the DomainCombiner or null
- Throws:
AccessControlException- thrown when the caller doesn't have the "getDomainCombiner" SecurityPermission
-