org.systinet.security.perm
Class WASPDeployPermissionCollection

java.lang.Object
  extended byjava.security.PermissionCollection
      extended byorg.systinet.security.perm.WASPDeployPermissionCollection
All Implemented Interfaces:
java.io.Serializable

public final class WASPDeployPermissionCollection
extends java.security.PermissionCollection

A WASPDeployPermissionCollection stores a set of WASPDeployPermission permissions. At most one WASPDeployPermission object can stored into this collection.

See Also:
Serialized Form

Constructor Summary
WASPDeployPermissionCollection()
          Create an empty WASPDeployPermissions object.
 
Method Summary
 void add(java.security.Permission permission)
          Adds a permission to this collection.
 java.util.Enumeration elements()
          Returns an enumeration of all the WASPDeployPermission 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, wait, wait, wait
 

Constructor Detail

WASPDeployPermissionCollection

public WASPDeployPermissionCollection()
Create an empty WASPDeployPermissions object. Does nothing, modified == false by default

Method Detail

add

public void add(java.security.Permission permission)
Adds a permission to this collection.

Parameters:
permission - the Permission object to add.
Throws:
java.lang.IllegalArgumentException - - if the permission is not a WASPDeployPermission
java.lang.SecurityException - - if this WASPDeployPermissionCollection object has been marked readonly

implies

public boolean implies(java.security.Permission permission)
Check and see if this set of permissions implies the permissions expressed in "permission". Only WASPDeployPermission instances implies from this permission.

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 java.util.Enumeration elements()
Returns an enumeration of all the WASPDeployPermission objects in the container.

Returns:
an enumeration of at most one WASPDeployPermission object.