java.util
Class PropertyPermissionCollection
java.lang.Object
|
+--java.security.PermissionCollection
|
+--java.util.PropertyPermissionCollection
- final class PropertyPermissionCollection
- extends java.security.PermissionCollection
- implements Serializable
A PropertyPermissionCollection stores a set of PropertyPermission
permissions.
- See Also:
Permission
,
java.security.Permissions
,
PermissionCollection
, Serialized Form
Fields inherited from class java.security.PermissionCollection |
readOnly |
Method Summary |
void |
add(java.security.Permission permission)
Adds a permission to the PropertyPermissions. |
Enumeration |
elements()
Returns an enumeration of all the PropertyPermission objects in the
container. |
boolean |
implies(java.security.Permission permission)
Check and see if this set of permissions implies the permissions
expressed in "permission". |
Methods inherited from class java.security.PermissionCollection |
isReadOnly,
setReadOnly,
toString |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
permissions
private Hashtable permissions
- Table of permissions.
all_allowed
private boolean all_allowed
- Boolean saying if "*" is in the collection.
PropertyPermissionCollection
public PropertyPermissionCollection()
- Create an empty PropertyPermissions object.
add
public void add(java.security.Permission permission)
- Adds a permission to the PropertyPermissions. The key for the hash is
the name.
- Parameters:
permission
- the Permission object to add.- Overrides:
- add in class java.security.PermissionCollection
implies
public boolean implies(java.security.Permission permission)
- Check and see if this set of permissions implies the permissions
expressed in "permission".
- Parameters:
p
- the Permission object to compare- Returns:
- true if "permission" is a proper subset of a permission in
the set, false if not.
- Overrides:
- implies in class java.security.PermissionCollection
elements
public Enumeration elements()
- Returns an enumeration of all the PropertyPermission objects in the
container.
- Returns:
- an enumeration of all the PropertyPermission objects.
- Overrides:
- elements in class java.security.PermissionCollection