| java.lang.Object java.security.PermissionCollection
All known Subclasses: java.io.FilePermissionCollection, java.security.AllPermissionCollection, java.util.PropertyPermissionCollection, java.security.UnresolvedPermissionCollection, java.net.SocketPermissionCollection, java.security.PermissionsHash, java.security.BasicPermissionCollection, java.security.Permissions,
PermissionCollection | abstract public class PermissionCollection implements Serializable(Code) | | Abstract superclass of classes which are collections of Permission objects.
|
Method Summary | |
abstract public void | add(Permission permission) Adds the argument to the collection. | abstract public Enumeration<Permission> | elements() Answers an enumeration of the permissions in the receiver. | abstract public boolean | implies(Permission permission) Indicates whether the argument permission is implied by the permissions
contained in the receiver. | public boolean | isReadOnly() Indicates whether new permissions can be added to the receiver. | public void | setReadOnly() Marks the receiver as read only, so that no new permissions can be added
to it. | public String | toString() Answers a string containing a concise, human-readable description of the
receiver. |
add | abstract public void add(Permission permission)(Code) | | Adds the argument to the collection.
Parameters: permission - java.security.Permission the permission to add to thecollection. exception: IllegalStateException - if the collection is read only. |
elements | abstract public Enumeration<Permission> elements()(Code) | | Answers an enumeration of the permissions in the receiver.
Enumeration the permissions in the receiver. |
implies | abstract public boolean implies(Permission permission)(Code) | | Indicates whether the argument permission is implied by the permissions
contained in the receiver.
boolean true if the argument permission is impliedby the permissions in the receiver, and false ifit is not. Parameters: permission - java.security.Permission the permission to check |
isReadOnly | public boolean isReadOnly()(Code) | | Indicates whether new permissions can be added to the receiver.
boolean true if the receiver is read onlyfalse if new elements can still be added to thereceiver. |
setReadOnly | public void setReadOnly()(Code) | | Marks the receiver as read only, so that no new permissions can be added
to it.
|
toString | public String toString()(Code) | | Answers a string containing a concise, human-readable description of the
receiver.
a printable representation for the receiver. |
|
|