javax.security.jacc
Class WebResourcePermissionCollection
java.lang.Object
java.security.PermissionCollection
javax.security.jacc.WebResourcePermissionCollection
- All Implemented Interfaces:
- Serializable
- public final class WebResourcePermissionCollection
- extends PermissionCollection
- Version:
- $Revision: 1.3 $ $Date: 2004/03/10 09:59:53 $
- See Also:
- Serialized Form
|
Method Summary |
void |
add(Permission permission)
Adds a permission object to the current collection of permission objects. |
Enumeration |
elements()
Returns an enumeration of all the Permission objects in the collection. |
boolean |
implies(Permission permission)
Checks to see if the specified permission is implied by
the collection of Permission objects held in this PermissionCollection. |
WebResourcePermissionCollection
public WebResourcePermissionCollection()
add
public void add(Permission permission)
- Adds a permission object to the current collection of permission objects.
- Parameters:
permission - the Permission object to add.
- Throws:
SecurityException - - if this PermissionCollection object
has been marked readonly
implies
public boolean implies(Permission permission)
- Checks to see if the specified permission is implied by
the collection of Permission objects held in this 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 Permission objects in the collection.
- Returns:
- an enumeration of all the Permissions.
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.