|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.PermissionCollection | +--java.security.BasicPermissionCollection
A BasicPermissionCollection stores a collection of BasicPermission permissions. BasicPermission objects must be stored in a manner that allows them to be inserted in any order, but enable the implies function to evaluate the implies method in an efficient (and consistent) manner. A BasicPermissionCollection handles comparing a permission like "a.b.c.d.e" with a Permission such as "a.b.*", or "*".
java.security.Permission
,
java.security.Permissions
,
java.security.PermissionsImpl
,
Serialized FormField Summary | |
private boolean |
all_allowed
This is set to true if this BasicPermissionCollection
contains a BasicPermission with '*' as its permission name. |
private Class |
permClass
The class to which all BasicPermissions in this BasicPermissionCollection belongs. |
private Hashtable |
permissions
The BasicPermissions in this BasicPermissionCollection. |
(package private) static long |
serialVersionUID
|
Fields inherited from class java.security.PermissionCollection |
|
Constructor Summary | |
BasicPermissionCollection()
Create an empty BasicPermissionCollection object. |
Method Summary | |
void |
add(Permission permission)
Adds a permission to the BasicPermissions. |
Enumeration |
elements()
Returns an enumeration of all the BasicPermission objects in the container. |
boolean |
implies(Permission permission)
Check and see if this set of permissions implies the permissions expressed in "permission". |
private void |
readObject(ObjectInputStream s)
readObject is called to restore the state of the BasicPermissionCollection from a stream. |
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 |
static final long serialVersionUID
private Hashtable permissions
private boolean all_allowed
true
if this BasicPermissionCollection
contains a BasicPermission with '*' as its permission name.
private Class permClass
Constructor Detail |
public BasicPermissionCollection()
Method Detail |
public void add(Permission permission)
add
in class PermissionCollection
permission
- the Permission object to add.public boolean implies(Permission permission)
implies
in class PermissionCollection
permission
- the Permission object to compare.
public Enumeration elements()
elements
in class PermissionCollection
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |