Top Description Fields Constructors Methods
org.osgi.service.dmt.security

pack-priv final Class DmtPermissionCollection

Located in compilation unit of org.osgi.service.dmt.security.DmtPermission.

extends PermissionCollection
Class Inheritance

Represents a homogeneous collection of DmtPermission objects.

Field Summary

Modifier and TypeField and Description
private ArrayList<Permission>
private static final long

Constructor Summary

AccessConstructor and Description
public
DmtPermissionCollection()

Create an empty DmtPermissionCollection object.

Method Summary

Modifier and TypeMethod and Description
public void
add(Permission
the Permission object to add
permission
)

Implements abstract java.security.PermissionCollection.add.

Adds a permission to the DmtPermissionCollection.

public Enumeration<Permission>

Returns:

an enumeration of all the DmtPermission objects
elements
()

Implements abstract java.security.PermissionCollection.elements.

Returns an enumeration of all the DmtPermission objects in the container.

public boolean

Returns:

true if the parameter permission is a proper subset of the permissions in the collection, false otherwise
implies
(Permission
the Permission object to compare
permission
)

Implements abstract java.security.PermissionCollection.implies.

Check whether this set of permissions implies the permission specified in the parameter.

Inherited from java.security.PermissionCollection:
elementsAsStreamisReadOnlysetReadOnlytoString

Field Detail

permsback to summary
private ArrayList<Permission> perms
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.PermissionCollection.serialVersionUID.

Constructor Detail

DmtPermissionCollectionback to summary
public DmtPermissionCollection()

Create an empty DmtPermissionCollection object.

Method Detail

addback to summary
public void add(Permission permission)

Implements abstract java.security.PermissionCollection.add.

Adds a permission to the DmtPermissionCollection.

Parameters
permission:Permission

the Permission object to add

Annotations
@Override
Exceptions
IllegalArgumentException:
if the permission is not a DmtPermission
SecurityException:
if this DmtPermissionCollection object has been marked readonly
elementsback to summary
public Enumeration<Permission> elements()

Implements abstract java.security.PermissionCollection.elements.

Returns an enumeration of all the DmtPermission objects in the container. The returned value cannot be null.

Returns:Enumeration<Permission>

an enumeration of all the DmtPermission objects

Annotations
@Override
impliesback to summary
public boolean implies(Permission permission)

Implements abstract java.security.PermissionCollection.implies.

Check whether this set of permissions implies the permission specified in the parameter.

Parameters
permission:Permission

the Permission object to compare

Returns:boolean

true if the parameter permission is a proper subset of the permissions in the collection, false otherwise

Annotations
@Override