Located in compilation unit of java.
java.security.Permission , java.security.Permissions , java.security.PermissionCollection
| Modifier and Type | Field and Description |
|---|---|
| private transient Map | |
| 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 SocketPermissions. |
| public Enumeration | Returns: an enumeration of all the SocketPermission objects.Implements abstract java. Returns an enumeration of all the SocketPermission objects in the container. |
| public boolean | Returns: true if "permission" is a proper subset of a permission in the collection, false if not.the Permission object to compare permission)Implements abstract java. Check and see if this collection 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 state of this object to the stream. |
| perms | back to summary |
|---|---|
| private transient Map<String, SocketPermission> perms | |
| serialPersistentFields | back to summary |
|---|---|
private static final ObjectStreamField[] serialPersistentFields
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| SocketPermissionCollection | back to summary |
|---|---|
| public SocketPermissionCollection() Create an empty SocketPermissionCollection object. | |
| add | back to summary |
|---|---|
| public void add(Permission permission) Implements abstract java. Adds a permission to the SocketPermissions. The key for the hash is the name in the case of wildcards, or all the IP addresses.
| |
| elements | back to summary |
|---|---|
| public Enumeration Implements abstract java. Returns an enumeration of all the SocketPermission objects in the container.
| |
| implies | back to summary |
|---|---|
| public boolean implies(Permission permission) Implements abstract java. Check and see if this collection 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 state of this object to the stream.
| |