org.osgi.framework.PackagePermissionCollection Class Reference

List of all members.


Detailed Description

Stores a set of PackagePermission permissions.

See also:
java.security.Permission

java.security.Permissions

java.security.PermissionCollection

Definition at line 390 of file PackagePermission.java.


Public Member Functions

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

Member Function Documentation

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

Adds a permission to the PackagePermission objects.

The key for the hash is the name.

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

Definition at line 429 of file PackagePermission.java.

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

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

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

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

Definition at line 473 of file PackagePermission.java.

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

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

Returns an enumeration of all PackagePermission objects in the container.

Returns:
Enumeration of all PackagePermission objects.

Definition at line 538 of file PackagePermission.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