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

java.lang.Objectjava.security.PermissionCollection
java.security.Permissions.PermissionsHash
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- Permissions
- private static final class Permissions.PermissionsHash
- extends PermissionCollection
Implements the permission collection for all permissions without one of their own, and obeys serialization of JDK.
| Field Summary | |
private java.util.Hashtable |
perms
Hashtable where we store permissions. |
private static long |
serialVersionUID
Compatible with JDK 1.1+. |
| Fields inherited from class java.security.PermissionCollection |
|
| Constructor Summary | |
private |
Permissions.PermissionsHash()
|
| Method Summary | |
void |
add(Permission perm)
Add a permission. |
java.util.Enumeration |
elements()
Return the elements. |
boolean |
implies(Permission perm)
Returns true if perm is in the collection. |
| 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
perms
private final java.util.Hashtable perms
- Hashtable where we store permissions.
| Constructor Detail |
Permissions.PermissionsHash
private Permissions.PermissionsHash()
| Method Detail |
add
public void add(Permission perm)
- Add a permission. We don't need to check for read-only, as this
collection is never exposed outside of Permissions, which has already
done that check.
- Specified by:
addin classPermissionCollection
implies
public boolean implies(Permission perm)
- Returns true if perm is in the collection.
- Specified by:
impliesin classPermissionCollection
elements
public java.util.Enumeration elements()
- Return the elements.
- 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