Lines Matching defs:Policy

35  * access control <code>Policy</code>.
37 * <p> A <code>Policy</code> object can be queried for the set of
42 * policy = Policy.getPolicy();
47 * The <code>Policy</code> object consults the local policy and returns
53 * <p> A <code>Policy</code> contains the following information.
55 * <code>Policy</code> implementation. Subclass implementations of this class
57 * <code>Policy</code> from any source such as files, databases,
60 * <p> Each entry in the <code>Policy</code> is represented as
96 * Note that this <code>Policy</code> (and the Permissions
97 * granted in this <code>Policy</code>) only become effective
118 * in this <code>Policy</code>. Therefore, grant entries such as:
127 * <code>java.security.Policy</code>.
129 * <p> The default <code>Policy</code> implementation can be changed by
132 * the desired <code>Policy</code> implementation class.
138 * @deprecated as of JDK version 1.4 -- Replaced by java.security.Policy.
139 * java.security.Policy has a method:
155 * Policy for Principal-based Permission entries.
160 public abstract class Policy {
162 private static Policy policy;
182 protected Policy() { }
185 * Returns the installed Policy object.
189 * to ensure the caller has permission to get the Policy object.
193 * @return the installed Policy. The return value cannot be
197 * have permission to get the Policy object.
201 public static Policy getPolicy() {
208 * Returns the installed Policy object, skipping the security check.
210 * @return the installed Policy.
213 static Policy getPolicyNoCheck() {
216 synchronized(Policy.class) {
234 (new java.security.PrivilegedExceptionAction<Policy>() {
235 public Policy run() throws ClassNotFoundException,
238 return (Policy) Class.forName
259 * Sets the system-wide Policy object. This method first calls
262 * permission to ensure the caller has permission to set the Policy.
266 * @param policy the new system Policy object.
269 * have permission to set the Policy.
273 public static void setPolicy(Policy policy) {
276 Policy.policy = policy;
285 * developers that provide their own javax.security.auth.Policy
348 * Refresh and reload the Policy.
351 * Policy. This is implementation-dependent.
352 * For example, if the Policy object is stored in
358 * to refresh the Policy.