UnresolvedPermissionCollection
stores a collection
of UnresolvedPermission permissions.
java.security.Permission
, java.security.Permissions
, java.security.UnresolvedPermission
Modifier and Type | Field and Description |
---|---|
private transient ConcurrentHashMap | perms
Key is permission type, value is a list of the UnresolvedPermissions of the same type. |
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 this |
public Enumeration | Returns: an enumeration of all the UnresolvedPermission objects.Implements abstract java. Returns an enumeration of all the UnresolvedPermission lists in the container. |
pack-priv List | getUnresolvedPermissions(Permission p)
get any unresolved permissions of the same type as p, and return the List containing them. |
public boolean | implies(Permission
the permission)Permission object to compare.Implements abstract java. always returns |
private void | readObject(ObjectInputStream
the in)ObjectInputStream from which data is readReads in a Hashtable in which the values are Vectors of UnresolvedPermissions 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 Hashtable in which the values are Vectors for serialization compatibility with earlier releases. |
perms | back to summary |
---|---|
private transient ConcurrentHashMap<String, List<UnresolvedPermission>> perms Key is permission type, value is a list of the UnresolvedPermissions of the same type. 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. |
UnresolvedPermissionCollection | back to summary |
---|---|
public UnresolvedPermissionCollection() Create an empty |
add | back to summary |
---|---|
public void add(Permission permission) Implements abstract java. Adds a permission to this
|
elements | back to summary |
---|---|
public Enumeration Implements abstract java. Returns an enumeration of all the UnresolvedPermission lists in the container.
|
getUnresolvedPermissions | back to summary |
---|---|
pack-priv List get any unresolved permissions of the same type as p, and return the List containing them. |
implies | back to summary |
---|---|
public boolean implies(Permission permission) Implements abstract java. always returns
|
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException Reads in a Hashtable in which the values are Vectors of UnresolvedPermissions 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 Hashtable in which the values are Vectors for serialization compatibility with earlier releases.
|