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.PermissionCollectionRepresents a homogeneous collection of AlertPermission objects.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<java.security.Permission>permsprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description DmtAlertPermissionCollection()Create an empty DmtAlertPermissionCollection object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(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.booleanimplies(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:
addin 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:
impliesin 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:
elementsin classjava.security.PermissionCollection- Returns:
- an enumeration of all the AlertPermission objects
-
-