|
|||||||||
| Home >> All >> java >> [ security overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.security
Class BasicPermission.BasicPermissionCollection

java.lang.Objectjava.security.PermissionCollection
java.security.BasicPermission.BasicPermissionCollection
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- BasicPermission
- private static final class BasicPermission.BasicPermissionCollection
- extends PermissionCollection
Implements AllPermission.newPermissionCollection, and obeys serialization of JDK.
| Field Summary | |
private boolean |
all_allowed
If "*" is in the collection. |
private java.lang.Class |
permClass
The runtime class which all entries in the table must belong to. |
private java.util.Hashtable |
permissions
The permissions in the collection. |
private static long |
serialVersionUID
Compatible with JDK 1.1+. |
| Fields inherited from class java.security.PermissionCollection |
|
| Constructor Summary | |
(package private) |
BasicPermission.BasicPermissionCollection(java.lang.Class c)
Construct a collection over the given runtime class. |
| Method Summary | |
void |
add(Permission perm)
Add a Permission. |
java.util.Enumeration |
elements()
Enumerate over the collection. |
boolean |
implies(Permission permission)
Returns true if this collection implies the given permission. |
| Methods inherited from class java.security.PermissionCollection |
isReadOnly, setReadOnly, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- Compatible with JDK 1.1+.
- See Also:
- Constant Field Values
permissions
private final java.util.Hashtable permissions
- The permissions in the collection.
all_allowed
private boolean all_allowed
- If "*" is in the collection.
permClass
private final java.lang.Class permClass
- The runtime class which all entries in the table must belong to.
| Constructor Detail |
BasicPermission.BasicPermissionCollection
BasicPermission.BasicPermissionCollection(java.lang.Class c)
- Construct a collection over the given runtime class.
| Method Detail |
add
public void add(Permission perm)
- Add a Permission. It must be of the same type as the permission which
created this collection.
- Specified by:
addin classPermissionCollection
implies
public boolean implies(Permission permission)
- Returns true if this collection implies the given permission.
- Specified by:
impliesin classPermissionCollection
elements
public java.util.Enumeration elements()
- Enumerate over the collection.
- Specified by:
elementsin classPermissionCollection
|
|||||||||
| Home >> All >> java >> [ security overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC