Class DmtAlertPermissionCollection

java.lang.Object
java.security.PermissionCollection
org.osgi.service.dmt.security.DmtAlertPermissionCollection
All Implemented Interfaces:
Serializable

final class DmtAlertPermissionCollection extends PermissionCollection
Represents a homogeneous collection of AlertPermission objects.
  • Field Details

  • Constructor Details

    • DmtAlertPermissionCollection

      public DmtAlertPermissionCollection()
      Create an empty DmtAlertPermissionCollection object.
  • Method Details

    • add

      public void add(Permission permission)
      Adds a permission to the DmtAlertPermissionCollection.
      Specified by:
      add in class PermissionCollection
      Parameters:
      permission - the Permission object to add
      Throws:
      IllegalArgumentException - if the permission is not a AlertPermission
      SecurityException - if this DmtAlertPermissionCollection object has been marked readonly
    • implies

      public boolean implies(Permission permission)
      Check whether this set of permissions implies the permission specified in the parameter.
      Specified by:
      implies in class 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 Enumeration<Permission> elements()
      Returns an enumeration of all the AlertPermission objects in the container. The returned value cannot be null.
      Specified by:
      elements in class PermissionCollection
      Returns:
      an enumeration of all the AlertPermission objects