Lines Matching defs:policy
32 * <p> This is an abstract class for representing the system policy for
42 * policy = Policy.getPolicy();
43 * PermissionCollection perms = policy.getPermissions(subject,
47 * The <code>Policy</code> object consults the local policy and returns
130 * setting the value of the "auth.policy.provider" security property
162 private static Policy policy;
166 // policy object is set
214 if (policy == null) {
218 if (policy == null) {
224 ("auth.policy.provider");
233 policy = java.security.AccessController.doPrivileged
249 ("unable.to.instantiate.Subject.based.policy"));
254 return policy;
266 * @param policy the new system Policy object.
273 public static void setPolicy(Policy policy) {
276 Policy.policy = policy;
277 // all non-null policy objects are assumed to be custom
278 isCustomPolicy = policy != null ? true : false;
283 * system-wide policy object has been set or installed. This method is
289 * system-wide policy object has been set; false otherwise
292 if (policy != null) {
295 "javax.security.auth.policy implementation: " +
296 policy.toString());
300 // check if custom policy has been set using auth.policy.provider prop
304 return Security.getProperty("auth.policy.provider");
311 "javax.security.auth.policy implementation: " +