Top Description Fields Constructors Methods
org.osgi.service.clusterinfo

pack-priv final Class ClusterTagPermissionCollection

Located in compilation unit of org.osgi.service.clusterinfo.ClusterTagPermission.

extends PermissionCollection
Class Inheritance

Stores a set of ClusterTagPermission permissions.
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 Map<String, ClusterTagPermission>
permissions

Table of permissions.

private static final ObjectStreamField[]
private static final long

Constructor Summary

AccessConstructor and Description
public
ClusterTagPermissionCollection()

Create an empty ClusterTagPermission object.

Method Summary

Modifier and TypeMethod and Description
public void
add(final Permission
The ClusterTagPermission object to add.
permission
)

Implements abstract java.security.PermissionCollection.add.

Adds a permission to the ClusterTagPermission objects.

public synchronized Enumeration<Permission>

Returns:

Enumeration of all ClusterTagPermission objects.
elements
()

Implements abstract java.security.PermissionCollection.elements.

Returns an enumeration of all ClusterTagPermission objects in the container.

public boolean

Returns:

true if permission is a proper subset of a permission in the set; false otherwise.
implies
(final Permission
The Permission object to compare with this ClusterTagPermission object.
permission
)

Implements abstract java.security.PermissionCollection.implies.

Determines if the specified permissions implies the permissions expressed in permission.

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

Field Detail

all_allowedback to summary
private boolean all_allowed

Boolean saying if "*" is in the collection.

permissionsback to summary
private Map<String, ClusterTagPermission> permissions

Table of permissions.

serialPersistentFieldsback to summary
private static final ObjectStreamField[] serialPersistentFields
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.PermissionCollection.serialVersionUID.

Constructor Detail

ClusterTagPermissionCollectionback to summary
public ClusterTagPermissionCollection()

Create an empty ClusterTagPermission object.

Method Detail

addback to summary
public void add(final Permission permission)

Implements abstract java.security.PermissionCollection.add.

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

Parameters
permission:Permission

The ClusterTagPermission object to add.

Annotations
@Override
Exceptions
IllegalArgumentException:
If the permission is not a ClusterTagPermission instance.
SecurityException:
If this ClusterTagPermissionCollection object has been marked read-only.
elementsback to summary
public synchronized Enumeration<Permission> elements()

Implements abstract java.security.PermissionCollection.elements.

Returns an enumeration of all ClusterTagPermission objects in the container.

Returns:Enumeration<Permission>

Enumeration of all ClusterTagPermission objects.

Annotations
@Override
impliesback to summary
public boolean implies(final Permission permission)

Implements abstract java.security.PermissionCollection.implies.

Determines if the specified permissions implies the permissions expressed in permission.

Parameters
permission:Permission

The Permission object to compare with this ClusterTagPermission object.

Returns:boolean

true if permission is a proper subset of a permission in the set; false otherwise.

Annotations
@Override
readObjectback to summary
private synchronized void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
writeObjectback to summary
private synchronized void writeObject(ObjectOutputStream out) throws IOException