Package org.osgi.service.dmt.security
Class DmtAlertPermissionCollection
- java.lang.Object
-
- java.security.PermissionCollection
-
- org.osgi.service.dmt.security.DmtAlertPermissionCollection
-
- All Implemented Interfaces:
java.io.Serializable
final class DmtAlertPermissionCollection extends java.security.PermissionCollection
Represents a homogeneous collection of AlertPermission objects.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<java.security.Permission>
perms
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description DmtAlertPermissionCollection()
Create an empty DmtAlertPermissionCollection object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.security.Permission permission)
Adds a permission to the DmtAlertPermissionCollection.java.util.Enumeration<java.security.Permission>
elements()
Returns an enumeration of all the AlertPermission objects in the container.boolean
implies(java.security.Permission permission)
Check whether this set of permissions implies the permission specified in the parameter.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
perms
private java.util.ArrayList<java.security.Permission> perms
-
-
Method Detail
-
add
public void add(java.security.Permission permission)
Adds a permission to the DmtAlertPermissionCollection.- Specified by:
add
in classjava.security.PermissionCollection
- Parameters:
permission
- the Permission object to add- Throws:
java.lang.IllegalArgumentException
- if the permission is not a AlertPermissionjava.lang.SecurityException
- if this DmtAlertPermissionCollection object has been marked readonly
-
implies
public boolean implies(java.security.Permission permission)
Check whether this set of permissions implies the permission specified in the parameter.- Specified by:
implies
in classjava.security.PermissionCollection
- Parameters:
permission
- the Permission object to compare- Returns:
- true if the parameter permission is a proper subset of the permissions in the collection, false otherwise
-
elements
public java.util.Enumeration<java.security.Permission> elements()
Returns an enumeration of all the AlertPermission objects in the container. The returned value cannot benull
.- Specified by:
elements
in classjava.security.PermissionCollection
- Returns:
- an enumeration of all the AlertPermission objects
-
-