Package org.osgi.service.wireadmin
Class WirePermissionCollection
java.lang.Object
java.security.PermissionCollection
org.osgi.service.wireadmin.WirePermissionCollection
- All Implemented Interfaces:
Serializable
A
WirePermissionCollection
stores a set of WirePermission
permissions.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Boolean saying if "*" is in the collection.private final Hashtable
<String, WirePermission> Table of permissions.(package private) static final long
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty WirePermissionCollection object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Permission permission) Adds a permission to this PermissionCollection.elements()
Returns an enumeration of all the Permission objects in the container.boolean
implies
(Permission permission) Determines if a set of permissions implies the permissions expressed inpermission
.Methods inherited from class java.security.PermissionCollection
elementsAsStream, isReadOnly, setReadOnly, toString
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
permissions
Table of permissions. -
all_allowed
private boolean all_allowedBoolean saying if "*" is in the collection.
-
-
Constructor Details
-
WirePermissionCollection
public WirePermissionCollection()Creates an empty WirePermissionCollection object.
-
-
Method Details
-
add
Adds a permission to this PermissionCollection.- Specified by:
add
in classPermissionCollection
- Parameters:
permission
- The Permission object to add.- Throws:
IllegalArgumentException
- If the permission is not a WirePermission object.SecurityException
- If this PermissionCollection has been marked read-only.
-
implies
Determines if a set of permissions implies the permissions expressed inpermission
.- Specified by:
implies
in classPermissionCollection
- Parameters:
permission
- The Permission object to compare.- Returns:
true
ifpermission
is a proper subset of a permission in the set;false
otherwise.
-
elements
Returns an enumeration of all the Permission objects in the container.- Specified by:
elements
in classPermissionCollection
- Returns:
- Enumeration of all the Permission objects.
-