|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.AccessControlContext
Untamed:
Field Summary | |
private DomainCombiner |
combiner
|
private ProtectionDomain[] |
context
|
private static sun.security.util.Debug |
debug
|
private static boolean |
debugInit
|
private boolean |
isPrivileged
|
private AccessControlContext |
privilegedContext
|
Constructor Summary | |
|
AccessControlContext(AccessControlContext acc,
DomainCombiner combiner)
Enabled: Create a new AccessControlContext with the given
AccessControlContext and DomainCombiner . |
|
AccessControlContext(ProtectionDomain[] context)
Enabled: Create an AccessControlContext with the given set of ProtectionDomains. |
(package private) |
AccessControlContext(ProtectionDomain[] context,
boolean isPrivileged)
package private constructor for AccessController.getContext() |
private |
AccessControlContext(ProtectionDomain[] context,
DomainCombiner combiner)
|
Method Summary | |
void |
checkPermission(Permission perm)
Enabled: 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. |
private boolean |
containsAllPDs(AccessControlContext that)
|
boolean |
equals(Object obj)
Suppressed: Checks two AccessControlContext objects for equality. |
(package private) static sun.security.util.Debug |
getDebug()
|
DomainCombiner |
getDomainCombiner()
Enabled: Get the DomainCombiner associated with this
AccessControlContext . |
private AccessControlContext |
goCombiner(ProtectionDomain[] current,
AccessControlContext assigned)
|
int |
hashCode()
Suppressed: Returns the hash code value for this context. |
(package private) boolean |
isPrivileged()
Returns true if this context is privileged. |
(package private) AccessControlContext |
optimize()
Take the stack-based context (this) and combine it with the privileged or inherited context, if need be. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ProtectionDomain[] context
private boolean isPrivileged
private AccessControlContext privilegedContext
private DomainCombiner combiner
private static boolean debugInit
private static sun.security.util.Debug debug
Constructor Detail |
public AccessControlContext(ProtectionDomain[] context)
context
- the ProtectionDomains associated with this context.public AccessControlContext(AccessControlContext acc, DomainCombiner combiner)
AccessControlContext
with the given
AccessControlContext
and DomainCombiner
.
This constructor associates the provided
DomainCombiner
with the provided
AccessControlContext
.
acc
- the AccessControlContext
associated
with the provided DomainCombiner
. combiner
- the DomainCombiner
to be associated
with the provided AccessControlContext
.private AccessControlContext(ProtectionDomain[] context, DomainCombiner combiner)
AccessControlContext(ProtectionDomain[] context, boolean isPrivileged)
Method Detail |
static sun.security.util.Debug getDebug()
boolean isPrivileged()
public DomainCombiner getDomainCombiner()
DomainCombiner
associated with this
AccessControlContext
.
DomainCombiner
associated with this
AccessControlContext
, or null
if there is none.public void checkPermission(Permission perm) throws AccessControlException
This method quietly returns if the access request is permitted, or throws a suitable AccessControlException otherwise.
perm
- the requested permission.
AccessControlException
AccessControlContext optimize()
private AccessControlContext goCombiner(ProtectionDomain[] current, AccessControlContext assigned)
public boolean equals(Object obj)
equals
in class Object
obj
- the object we are testing for equality with this object.
Object.hashCode()
,
java.util.Hashtable
private boolean containsAllPDs(AccessControlContext that)
public int hashCode()
hashCode
in class Object
java.lang.Object#equals(java.lang.Object)
,
java.util.Hashtable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |