java.security
Class PermissionsHash
java.lang.Object
java.security.PermissionCollection
java.security.PermissionsHash
- All Implemented Interfaces:
- Serializable
final class PermissionsHash
- extends PermissionCollection
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 |
void |
add(Permission permission)
Adds the argument to the collection. |
Enumeration |
elements()
Returns an enumeration of the permissions in the receiver. |
boolean |
implies(Permission permission)
Indicates whether the argument permission is implied by the permissions
contained in the receiver. |
PermissionsHash
PermissionsHash()
add
public void add(Permission permission)
- Adds the argument to the collection.
- Specified by:
add in class PermissionCollection
- Parameters:
permission - java.security.Permission the permission to add to the
collection
elements
public Enumeration elements()
- Returns an enumeration of the permissions in the receiver.
- Specified by:
elements in class PermissionCollection
- Returns:
- Enumeration the permissions in the receiver.
implies
public boolean implies(Permission permission)
- Indicates whether the argument permission is implied by the permissions
contained in the receiver.
- Specified by:
implies in class PermissionCollection
- Parameters:
permission - java.security.Permission the permission to check
- Returns:
- boolean
true if the argument permission is implied
by the permissions in the receiver, and false if
it is not.
Please submit a feedback, bug or feature