Method Summary |
|
static Policy | getAccessiblePolicy() Shortcut accessor for friendly classes, to skip security checks.
If active policy was set to null , loads default provider,
so this method never returns null . |
abstract public PermissionCollection | getPermissions(CodeSource cs) Answers a PermissionCollection describing what permissions are available
to the given CodeSource based on the current security policy.
Note that this method is not called for classes which are in
the system domain (i.e. |
public PermissionCollection | getPermissions(ProtectionDomain domain) Answers a PermissionCollection describing what permissions are available
to the given ProtectionDomain (more specifically, its CodeSource) based
on the current security policy.
Parameters: domain - ProtectionDomain the protection domain to compute thepermissions for. |
public static Policy | getPolicy() Answers the current system security policy. |
public boolean | implies(ProtectionDomain domain, Permission permission) |
static boolean | isSet() Returns true if system policy provider is instantiated. |
abstract public void | refresh() Reloads the policy configuration, depending on how the type of source
location for the policy information. |
public static void | setPolicy(Policy policy) Sets the system-wide policy object if it is permitted by the security
manager. |