Lines Matching refs:permission

44  * The name for a BasicPermission is the name of the given permission
57 * named permission or you don't.)
77 // does this permission have a wildcard at the end?
83 // is this permission the old-style exitVM permission (pre JDK 1.6)?
124 * Name is the symbolic name of the permission, such as
159 * Checks if the specified permission is "implied" by
170 * @param p the permission to check against.
172 * @return true if the passed permission is equal to or
173 * implied by this permission, false otherwise.
278 * that the pre-JDK 1.6 "exitVM" and current "exitVM.*" permission are
295 * A BasicPermissionCollection handles comparing a permission like "a.b.c.d.e"
316 * Key is name, value is permission. All permission objects in
324 * contains a BasicPermission with '*' as its permission name.
350 * Adds a permission to the BasicPermissions. The key for the hash is
351 * permission.path.
353 * @param permission the Permission object to add.
355 * @exception IllegalArgumentException - if the permission is not a
357 * the permission is not of the
365 public void add(Permission permission)
367 if (! (permission instanceof BasicPermission))
368 throw new IllegalArgumentException("invalid permission: "+
369 permission);
373 BasicPermission bp = (BasicPermission) permission;
379 // adding first permission
383 throw new IllegalArgumentException("invalid permission: " +
384 permission);
388 perms.put(bp.getCanonicalName(), permission);
400 * expressed in "permission".
404 * @return true if "permission" is a proper subset of a permission in
408 public boolean implies(Permission permission)
410 if (! (permission instanceof BasicPermission))
413 BasicPermission bp = (BasicPermission) permission;
438 return x.implies(permission);
456 return x.implies(permission);
491 * of the Hashtable entry is the permission.
494 * contains a BasicPermission with '*' as its permission name.