API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security. Policy View Source
Author(s)
Roland Schemers
Gary Ellison
Since
Version
1.103, 11/17/06
Serial
Hierarchy
 Object
      Policy
Implements
Subclasses
Description
publicabstract abstract class Policy
  A Policy object is responsible for determining whether code executing in the Java runtime environment has permission to perform a security-sensitive operation.
Constructors
public Policy ()
Methods
Hide/Show inherited methods
publicstatic Policy getInstance (String type, Parameters params) throws NoSuchAlgorithmException
  Returns a Policy object of the specified type.
publicstatic Policy getInstance (String type, Parameters params, Provider provider) throws NoSuchAlgorithmException
  Returns a Policy object of the specified type.
publicstatic Policy getInstance (String type, Parameters params, String provider) throws NoSuchProviderException NoSuchAlgorithmException
  Returns a Policy object of the specified type.
public Parameters getParameters ()
  Return Policy parameters.
public PermissionCollection getPermissions (CodeSource codesource)
  Return a PermissionCollection object containing the set of permissions granted to the specified CodeSource.
public PermissionCollection getPermissions (ProtectionDomain domain)
  Return a PermissionCollection object containing the set of permissions granted to the specified ProtectionDomain.
publicstatic Policy getPolicy ()
  Returns the installed Policy object.
pack-privatestaticsynchronized Policy getPolicyNoCheck ()
  Returns the installed Policy object, skipping the security check.
public Provider getProvider ()
  Return the Provider of this Policy.
public String getType ()
  Return the type of this Policy.
public boolean implies (ProtectionDomain domain, Permission permission)
  Evaluates the global policy for the permissions granted to the ProtectionDomain and tests whether the permission is granted.
pack-privatestatic boolean isSet ()
package private for AccessControlContext
public void refresh ()
  Refreshes/reloads the policy configuration.
publicstatic void setPolicy (Policy p)
  Sets the system-wide Policy object.
Fields
Hide/Show inherited fields
publicfinalstatic PermissionCollection UNSUPPORTED_EMPTY_COLLECTION
  A read-only empty PermissionCollection instance.
Nested Classes
  Policy.Parameters
This represents a marker interface for Policy parameters.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar