|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.PermissionCollection
public abstract class PermissionCollection
Abstract superclass of classes which are collections of Permission objects.
| Constructor Summary | |
|---|---|
PermissionCollection()
|
|
| Method Summary | |
|---|---|
abstract void |
add(Permission permission)
Adds the argument to the collection. |
abstract Enumeration<Permission> |
elements()
Returns an enumeration of the permissions in the receiver. |
abstract boolean |
implies(Permission permission)
Indicates whether the argument permission is implied by the permissions contained in the receiver. |
boolean |
isReadOnly()
Indicates whether new permissions can be added to the receiver. |
void |
setReadOnly()
Marks the receiver as read only, so that no new permissions can be added to it. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PermissionCollection()
| Method Detail |
|---|
public abstract void add(Permission permission)
permission - java.security.Permission the permission to add to the
collection.
IllegalStateException - if the collection is read only.public abstract Enumeration<Permission> elements()
public abstract boolean implies(Permission permission)
permission - java.security.Permission the permission to check
true if the argument permission is implied
by the permissions in the receiver, and false if
it is not.public boolean isReadOnly()
true if the receiver is read only
false if new elements can still be added to the
receiver.public void setReadOnly()
public String toString()
toString in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||