Methods Summary |
---|
void | addPermission(java.security.Permission permission)
enabled.add(permission);
|
public void | checkAccept(java.lang.String host, int port)
isCheckAcceptCalled = true;
super.checkAccept(host, port);
|
public void | checkPermission(java.security.Permission permission)
if (permission != null) {
if (denied != null && denied.implies(permission)){
throw new SecurityException("Denied " + permission);
}
if (enabled.implies(permission)) {
return;
}
}
super.checkPermission(permission);
|
public void | checkPermission(java.security.Permission permission, java.lang.Object context)
if (permission != null) {
if (denied != null && denied.implies(permission)){
throw new SecurityException("Denied " + permission);
}
if (enabled.implies(permission)) {
return;
}
}
super.checkPermission(permission, context);
|
void | clearPermissions()
enabled = new Permissions();
|
void | denyPermission(java.security.Permission p)
if (denied == null) {
denied = p.newPermissionCollection();
}
denied.add(p);
|