Lines Matching refs:Permission

46  * it contains different types of Permission objects, organized into
58 * <p>When the <code>add</code> method is called to add a Permission, the
59 * Permission is stored in the appropriate PermissionCollection. If no such
60 * collection exists yet, the Permission object's class is determined and the
65 * hashtable entry stores a Permission object as both the key and the value.
71 * @see Permission
117 * @param permission the Permission object to add.
125 public void add(Permission permission) {
128 "attempt to add a Permission to a readonly Permissions object");
167 * @param permission the Permission object to check.
174 public boolean implies(Permission permission) {
193 * Returns an enumeration of all the Permission objects in all the
199 public Enumeration<Permission> elements() {
219 * on <i>p</i>. Subclasses of class Permission
239 private PermissionCollection getPermissionCollection(Permission p,
279 private PermissionCollection getUnresolvedPermissions(Permission p)
322 Permission perm = up.resolve(p, certs);
344 * A table of the Permission classes and PermissionCollections.
405 final class PermissionsEnumerator implements Enumeration<Permission> {
410 private Enumeration<Permission> permset;
438 public Permission nextElement() {
451 private Enumeration<Permission> getNextEnumWithMore() {
454 Enumeration<Permission> next =pc.elements();
466 * @see Permission
482 private transient Map<Permission, Permission> permsMap;
489 permsMap = new HashMap<Permission, Permission>(11);
495 * @param permission the Permission object to add.
498 public void add(Permission permission) {
508 * @param permission the Permission object to compare
514 public boolean implies(Permission permission) {
518 Permission p = permsMap.get(permission);
522 for (Permission p_ : permsMap.values()) {
534 * Returns an enumeration of all the Permission objects in the container.
539 public Enumeration<Permission> elements() {
569 Hashtable<Permission, Permission> perms =
582 * Reads in a Hashtable of Permission/Permission and saves them in the
593 Hashtable<Permission, Permission> perms =
594 (Hashtable<Permission, Permission>)gfields.get("perms", null);
595 permsMap = new HashMap<Permission, Permission>(perms.size()*2);