java.util
Class PropertyPermissionCollection

java.lang.Object
  |
  +--java.security.PermissionCollection
        |
        +--java.util.PropertyPermissionCollection
All Implemented Interfaces:
Serializable

final class PropertyPermissionCollection
extends PermissionCollection
implements Serializable

A PropertyPermissionCollection stores a set of PropertyPermission permissions.

Version:
1.27, 12/03/01
Author:
Roland Schemers
See Also:
java.security.Permission, java.security.Permissions, java.security.PermissionCollection, Serialized Form

Field Summary
private  boolean all_allowed
          Boolean saying if "*" is in the collection.
private  Hashtable permissions
          Table of permissions.
 
Fields inherited from class java.security.PermissionCollection
 
Constructor Summary
PropertyPermissionCollection()
          Create an empty PropertyPermissions object.
 
Method Summary
 void add(Permission permission)
          Adds a permission to the PropertyPermissions.
 Enumeration elements()
          Returns an enumeration of all the PropertyPermission objects in the container.
 boolean implies(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, wait, wait, wait
 

Field Detail

permissions

private Hashtable permissions
Table of permissions.


all_allowed

private boolean all_allowed
Boolean saying if "*" is in the collection.

Constructor Detail

PropertyPermissionCollection

public PropertyPermissionCollection()
Create an empty PropertyPermissions object.

Method Detail

add

public void add(Permission permission)
Adds a permission to the PropertyPermissions. The key for the hash is the name.

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 PropertyPermission objects in the container.

Specified by:
elements in class PermissionCollection
Returns:
an enumeration of all the PropertyPermission objects.


comments?