org.tanukisoftware.wrapper.security
final class WSCollection extends PermissionCollection
| Constructor Summary | |
|---|---|
| WSCollection()
Creates an empty WSCollection. | |
| Method Summary | |
|---|---|
| void | add(Permission permission)
Adds a permission to the FilePermissions. |
| Enumeration | elements()
Returns an enumeration of all the WrapperServicePermission
objects in the container.
|
| boolean | implies(Permission permission)
Check and see if this set of permissions implies the permissions
expressed in "permission".
|
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
Returns: An enumeration of all the WrapperServicePermission objects.
Parameters: permission the Permission object to compare
Returns: true if "permission" is a proper subset of a permission in the set, false if not.