Methods Summary |
---|
public void | add(java.security.Permission permission)Adds the argument to the collection.
perms.put(permission, permission);
|
public java.util.Enumeration | elements()Returns an enumeration of the permissions in the receiver.
return perms.elements();
|
public boolean | implies(java.security.Permission permission)Indicates whether the argument permission is implied by the permissions
contained in the receiver.
for (Enumeration elements = elements(); elements.hasMoreElements();) {
if (((Permission)elements.nextElement()).implies(permission)) {
return true;
}
}
return false;
|