org.osgi.framework.BundlePermissionCollection Class Reference

List of all members.


Detailed Description

Stores a set of BundlePermission permissions.

See also:
java.security.Permission

java.security.Permissions

java.security.PermissionCollection

Definition at line 428 of file BundlePermission.java.


Public Member Functions

 BundlePermissionCollection ()
 Create an empty BundlePermissions object.
void add (Permission permission)
 Adds a permission to the BundlePermission objects.
boolean implies (Permission permission)
 Determines if the specified permissions implies the permissions expressed in permission.
Enumeration elements ()
 Returns an enumeration of all BundlePermission objects in the container.

Member Function Documentation

void org.osgi.framework.BundlePermissionCollection.add ( Permission  permission  ) 

Adds a permission to the BundlePermission objects.

The key for the hash is the symbolic name.

Parameters:
permission The BundlePermission object to add.
Exceptions:
IllegalArgumentException If the permission is not a BundlePermission instance.
SecurityException If this BundlePermissionCollection object has been marked read-only.

Definition at line 471 of file BundlePermission.java.

References org.osgi.framework.BundlePermission.getMask().

boolean org.osgi.framework.BundlePermissionCollection.implies ( Permission  permission  ) 

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

Parameters:
permission The Permission object to compare with this BundlePermission object.
Returns:
true if permission is a proper subset of a permission in the set; false otherwise.

Definition at line 515 of file BundlePermission.java.

References org.osgi.framework.BundlePermission.getMask().

Enumeration org.osgi.framework.BundlePermissionCollection.elements (  ) 

Returns an enumeration of all BundlePermission objects in the container.

Returns:
Enumeration of all BundlePermission objects.

Definition at line 580 of file BundlePermission.java.


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:24 2010 for OpenMobileIS by  doxygen 1.5.4