Top Description Fields Constructors Methods
java.util

pack-priv final Class PropertyPermissionCollection

Located in compilation unit of java.util.PropertyPermission.

extends PermissionCollection
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

A PropertyPermissionCollection stores a set of PropertyPermission permissions.
Author
Roland Schemers
See Also
java.security.Permission, java.security.Permissions, java.security.PermissionCollection

Field Summary

Modifier and TypeField and Description
private boolean
all_allowed

Boolean saying if "*" is in the collection.

private transient ConcurrentHashMap<String, PropertyPermission>
perms

Key is property name; value is PropertyPermission.

private static final ObjectStreamField[]
private static final long

Constructor Summary

AccessConstructor and Description
public
PropertyPermissionCollection()

Create an empty PropertyPermissionCollection object.

Method Summary

Modifier and TypeMethod and Description
public void
add(Permission
the Permission object to add.
permission
)

Implements abstract java.security.PermissionCollection.add.

Adds a permission to the PropertyPermissions.

public Enumeration<Permission>

Returns:

an enumeration of all the PropertyPermission objects.
elements
()

Implements abstract java.security.PermissionCollection.elements.

Returns an enumeration of all the PropertyPermission objects in the container.

public boolean

Returns:

true if "permission" is a proper subset of a permission in the set, false if not.
implies
(Permission
the Permission object to compare
permission
)

Implements abstract java.security.PermissionCollection.implies.

Check and see if this set of permissions implies the permissions expressed in "permission".

private void
private void
Inherited from java.security.PermissionCollection:
elementsAsStreamisReadOnlysetReadOnlytoString

Field Detail

all_allowedback to summary
private boolean all_allowed

Boolean saying if "*" is in the collection.

See Also
serialPersistentFields
permsback to summary
private transient ConcurrentHashMap<String, PropertyPermission> perms

Key is property name; value is PropertyPermission. Not serialized; see serialization section at end of class.

serialPersistentFieldsback to summary
private static final ObjectStreamField[] serialPersistentFields
Serial Fields:
permissions:Hashtable
A table of the PropertyPermissions.
all_allowed:boolean
boolean saying if "*" is in the collection.
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.PermissionCollection.serialVersionUID.

Annotations
@Serial

Constructor Detail

PropertyPermissionCollectionback to summary
public PropertyPermissionCollection()

Create an empty PropertyPermissionCollection object.

Method Detail

addback to summary
public void add(Permission permission)

Implements abstract java.security.PermissionCollection.add.

Adds a permission to the PropertyPermissions. The key for the hash is the name.

Parameters
permission:Permission

the Permission object to add.

Annotations
@Override
Exceptions
IllegalArgumentException:
if the permission is not a PropertyPermission
SecurityException:
if this PropertyPermissionCollection object has been marked readonly
elementsback to summary
public Enumeration<Permission> elements()

Implements abstract java.security.PermissionCollection.elements.

Returns an enumeration of all the PropertyPermission objects in the container.

Returns:Enumeration<Permission>

an enumeration of all the PropertyPermission objects.

Annotations
@Override
@SuppressWarnings:unchecked
impliesback to summary
public boolean implies(Permission permission)

Implements abstract java.security.PermissionCollection.implies.

Check and see if this set of permissions implies the permissions expressed in "permission".

Parameters
permission:Permission

the Permission object to compare

Returns:boolean

true if "permission" is a proper subset of a permission in the set, false if not.

Annotations
@Override
readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Annotations
@Serial
writeObjectback to summary
private void writeObject(ObjectOutputStream out) throws IOException
Annotations
@Serial
Serial data
Default fields.