java.security
Class UnresolvedPermissionCollection

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

final class UnresolvedPermissionCollection
extends PermissionCollection
implements Serializable

A UnresolvedPermissionCollection stores a collection of UnresolvedPermission permissions.

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

Field Summary
private  Hashtable permissions
           
 
Fields inherited from class java.security.PermissionCollection
 
Constructor Summary
UnresolvedPermissionCollection()
          Create an empty BasicPermissions object.
 
Method Summary
 void add(Permission permission)
          Adds a permission to the BasicPermissions.
 Enumeration elements()
          Returns an enumeration of all the UnresolvedPermission vectors in the container.
(package private)  Vector getUnresolvedPermissions(Permission p)
          get any unresolved permissions of the same type as p, and return the Vector containing them.
 boolean implies(Permission permission)
          always returns false for unresolved permissions
 
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
Constructor Detail

UnresolvedPermissionCollection

public UnresolvedPermissionCollection()
Create an empty BasicPermissions object.

Method Detail

add

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

Specified by:
add in class PermissionCollection
Parameters:
permission - the Permission object to add.

getUnresolvedPermissions

Vector getUnresolvedPermissions(Permission p)
get any unresolved permissions of the same type as p, and return the Vector containing them.


implies

public boolean implies(Permission permission)
always returns false for unresolved permissions

Specified by:
implies in class PermissionCollection
Parameters:
permission - the Permission object to compare.
Returns:
true if "permission" is implied by the permissions in the collection, false if not.

elements

public Enumeration elements()
Returns an enumeration of all the UnresolvedPermission vectors in the container.

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


comments?