java.security
Class PermissionsHash
java.lang.Object
|
+--java.security.PermissionCollection
|
+--java.security.PermissionsHash
- All Implemented Interfaces:
- Serializable
- final class PermissionsHash
- extends PermissionCollection
- implements Serializable
A PermissionsHash stores a homogeneous set of permissions in a hashtable.
- Version:
- 1.50, 02/01/02
- Author:
- Roland Schemers
- See Also:
Permission
,
Permissions
,
Serialized Form
Constructor Summary |
(package private) |
PermissionsHash()
Create an empty PermissionsHash object. |
Method Summary |
void |
add(Permission permission)
Adds a permission to the PermissionsHash. |
Enumeration |
elements()
Returns an enumeration of all the Permission objects in the container. |
boolean |
implies(Permission permission)
Check and see if this set of permissions implies the permissions
expressed in "permission". |
perms
private Hashtable perms
PermissionsHash
PermissionsHash()
- Create an empty PermissionsHash object.
add
public void add(Permission permission)
- Adds a permission to the PermissionsHash.
- Specified by:
add
in class PermissionCollection
- Parameters:
permission
- the Permission object to add.
implies
public boolean implies(Permission permission)
- Check and see if this set of permissions implies the permissions
expressed in "permission".
- Specified by:
implies
in class PermissionCollection
- Parameters:
permission
- the Permission object to compare
- Returns:
- true if "permission" is a proper subset of a permission in
the set, false if not.
elements
public Enumeration elements()
- Returns an enumeration of all the Permission objects in the container.
- Specified by:
elements
in class PermissionCollection
- Returns:
- an enumeration of all the Permissions.
comments?