org.tanukisoftware.wrapper.security

Class WSCollection

final class WSCollection extends PermissionCollection

Constructor Summary
WSCollection()
Creates an empty WSCollection.
Method Summary
voidadd(Permission permission)
Adds a permission to the FilePermissions.
Enumerationelements()
Returns an enumeration of all the WrapperServicePermission objects in the container.
booleanimplies(Permission permission)
Check and see if this set of permissions implies the permissions expressed in "permission".

Constructor Detail

WSCollection

public WSCollection()
Creates an empty WSCollection.

Method Detail

add

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

Parameters: permission the Permission object to add.

Throws: IllegalArgumentException - if the permission is not a FilePermission SecurityException - if this FilePermissionCollection object has been marked readonly

elements

public Enumeration elements()
Returns an enumeration of all the WrapperServicePermission objects in the container.

Returns: An enumeration of all the WrapperServicePermission objects.

implies

public boolean implies(Permission permission)
Check and see if this set of permissions implies the permissions expressed in "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.