Located in compilation unit of java.
java.security.Permission , java.security.Permissions , java.security.PermissionCollection
| Modifier and Type | Field and Description |
|---|---|
| private transient ConcurrentHashMap | |
| private static final ObjectStreamField[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(Permission
the Permission object to add. permission)Implements abstract java. Adds a permission to the FilePermissionCollection. |
| public Enumeration | Returns: an enumeration of all the FilePermission objects.Implements abstract java. Returns an enumeration of all the FilePermission objects in the container. |
| public boolean | Returns: true if "permission" is a proper subset of a permission in the set, false if not.the Permission object to compare permission)Implements 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 Vector of FilePermissions and saves them in the perms field. |
| private void | writeObject(ObjectOutputStream
the out)ObjectOutputStream to which data is writtenWrites the contents of the perms field out as a Vector for serialization compatibility with earlier releases. |
| perms | back to summary |
|---|---|
| private transient ConcurrentHashMap<String, Permission> perms | |
| serialPersistentFields | back to summary |
|---|---|
private static final ObjectStreamField[] serialPersistentFields
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| FilePermissionCollection | back to summary |
|---|---|
| public FilePermissionCollection() Create an empty FilePermissionCollection object. | |
| add | back to summary |
|---|---|
| public void add(Permission permission) Implements abstract java. Adds a permission to the FilePermissionCollection. The key for the hash is permission.path.
| |
| elements | back to summary |
|---|---|
| public Enumeration Implements abstract java. Returns an enumeration of all the FilePermission objects in the container.
| |
| 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 Vector of FilePermissions and saves them in the perms field.
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException Writes the contents of the perms field out as a Vector for serialization compatibility with earlier releases.
| |