|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jxl.enclosure.security.PolicyData
public final class PolicyData
This class hides the details of mapping and recovering permission policy data from persistent store.
Method Summary | |
---|---|
void |
clearTestingPolicies()
|
void |
deny(java.security.CodeSigner signer,
java.security.Permission p)
Deny p to signer |
static PolicyData |
getInstance()
Get a singleton instance of PolicyData. |
java.util.Map<java.security.CodeSigner,java.util.Map<java.security.Permission,PermissionState>> |
getPolicies()
Get an unmodifiable view of the security policy data |
PermissionState |
getState(java.security.CodeSigner signer,
java.security.Permission p)
Get state of permissoin p for signer |
void |
grant(java.security.CodeSigner signer,
java.security.Permission p)
Grant p to signer |
boolean |
isDenied(java.security.CodeSigner signer,
java.security.Permission p)
Is p denied to signer |
boolean |
isGranted(java.security.CodeSigner signer,
java.security.Permission p)
Is p granted to signer |
void |
setState(java.security.CodeSigner signer,
java.security.Permission p,
PermissionState state)
Set the state of permissoin p for signer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PolicyData getInstance() throws java.lang.SecurityException
java.lang.SecurityException
- if the caller does not pass
jxl.enclosure.security.DynSecurityPolicy.checkEnclosure()
.public void clearTestingPolicies()
public void grant(java.security.CodeSigner signer, java.security.Permission p)
p
to signer
public void deny(java.security.CodeSigner signer, java.security.Permission p)
p
to signer
public boolean isGranted(java.security.CodeSigner signer, java.security.Permission p)
p
granted to signer
public boolean isDenied(java.security.CodeSigner signer, java.security.Permission p)
p
denied to signer
public PermissionState getState(java.security.CodeSigner signer, java.security.Permission p)
p
for signer
public java.util.Map<java.security.CodeSigner,java.util.Map<java.security.Permission,PermissionState>> getPolicies()
public void setState(java.security.CodeSigner signer, java.security.Permission p, PermissionState state)
p
for signer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |