Located in compilation unit of java.
PermissionsHash stores a homogeneous set of permissions in a
hashtable.
Permission, Permissions
| Modifier and Type | Field and Description |
|---|---|
| private transient ConcurrentHashMap | permsMap
Key and value are (same) permissions objects. |
| private static final ObjectStreamField[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(Permission
the permission)Permission object to add.Implements abstract java. Adds a permission to the |
| public Enumeration | Returns: an enumeration of all thePermission objects.Implements abstract java. Returns an enumeration of all the |
| public boolean | Returns: true if "permission" is a proper subset of a permission
in the set, false if not.the permission)Permission object to compareImplements abstract java. Check and see if this set of permissions implies the permissions expressed in "permission". |
| private void | readObject(ObjectInputStream
the in)ObjectInputStream from which data is readReads in a |
| private void | writeObject(ObjectOutputStream
the out)ObjectOutputStream to which data is writtenWrites the contents of the permsMap field out as a Hashtable for serialization compatibility with earlier releases. |
| permsMap | back to summary |
|---|---|
| private transient ConcurrentHashMap<Permission, Permission> permsMap Key and value are (same) permissions objects. Not serialized; see serialization section at end of class. | |
| serialPersistentFields | back to summary |
|---|---|
private static final ObjectStreamField[] serialPersistentFields
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| PermissionsHash | back to summary |
|---|---|
| pack-priv PermissionsHash() Create an empty | |
| add | back to summary |
|---|---|
| public void add(Permission permission) Implements abstract java. Adds a permission to the
| |
| elements | back to summary |
|---|---|
| public Enumeration Implements abstract java. Returns an enumeration of all the
| |
| implies | back to summary |
|---|---|
| public boolean implies(Permission permission) Implements abstract java. Check and see if this set of permissions implies the permissions expressed in "permission".
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException Reads in a
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException Writes the contents of the permsMap field out as a Hashtable for serialization compatibility with earlier releases.
| |