Name
Class java.security.Policy
Synopsis
The Policy
class encapsulates all the specific
permissions that the virtual machine knows about. This set of
permissions is by default read from a series of URLs specified by
policy.url
properties in the
$JDKHOME/lib/security/java.security
file,
although applications may specify their own policy objects by using
the setPolicy()
method of this class.
Alternately, a different default implementation of the policy class
may be specified by changing the policy.provider
property in the java.security
file.
Class Definition
public abstract class java.security.Policy extends java.lang.Object { // Constructors public Policy(); // Class Methods public static Policy getPolicy(); public static void setPolicy(Policy); // Instance Methods public abstract PermissionCollection getPermissions(CodeSource); public abstract void refresh(); }
See also:
Permission
, Permissions
Get Java Security now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.