org.osgi.framework.ServicePermissionCollection Class Reference

List of all members.


Detailed Description

Stores a set of ServicePermission permissions.

See also:
java.security.Permission

java.security.Permissions

java.security.PermissionCollection

Definition at line 360 of file ServicePermission.java.


Public Member Functions

 ServicePermissionCollection ()
 Creates an empty ServicePermissions object.
void add (Permission permission)
 Adds a permission to the ServicePermission objects using the key for the hash as the name.
boolean implies (Permission permission)
 Determines if a set of permissions implies the permissions expressed in permission.
Enumeration elements ()
 Returns an enumeration of all the ServicePermission objects in the container.

Member Function Documentation

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

Adds a permission to the ServicePermission objects using the key for the hash as the name.

Parameters:
permission The Permission object to add.
Exceptions:
IllegalArgumentException If the permission is not a ServicePermission object.
SecurityException If this ServicePermissionCollection object has been marked read-only.

Definition at line 398 of file ServicePermission.java.

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

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

Determines if a set of permissions implies the permissions expressed in permission.

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

Definition at line 440 of file ServicePermission.java.

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

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

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

Returns:
Enumeration of all the ServicePermission objects.

Definition at line 505 of file ServicePermission.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