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. |
void org.osgi.framework.ServicePermissionCollection.add | ( | Permission | permission | ) |
Adds a permission to the ServicePermission
objects using the key for the hash as the name.
permission | The Permission object to add. |
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
.
permission | The Permission object to compare. |
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.
Definition at line 505 of file ServicePermission.java.