| |
|
| java.lang.Object java.security.PermissionCollection java.security.PermissionsHash
PermissionsHash | final class PermissionsHash extends PermissionCollection (Code) | | A default PermissionCollection implementation that uses a hashtable. Each
hashtable entry stores a Permission object as both the key and the value.
This PermissionCollection is intended for storing "neutral"
permissions which do not require special collection.
|
Method Summary | |
public void | add(Permission permission) Adds the argument to the collection. | public Enumeration | elements() Answers an enumeration of the permissions in the receiver. | public boolean | implies(Permission permission) Indicates whether the argument permission is implied by the permissions
contained in the receiver. |
add | public void add(Permission permission)(Code) | | Adds the argument to the collection.
Parameters: permission - java.security.Permission the permission to add to thecollection |
elements | public Enumeration elements()(Code) | | Answers an enumeration of the permissions in the receiver.
Enumeration the permissions in the receiver. |
implies | public boolean implies(Permission permission)(Code) | | Indicates whether the argument permission is implied by the permissions
contained in the receiver.
boolean true if the argument permission is impliedby the permissions in the receiver, and false ifit is not. Parameters: permission - java.security.Permission the permission to check |
|
|
|