- java.lang.Object
-
- java.security.PermissionCollection
-
- com.ibm.oti.shared.SharedClassPermissionCollection
-
- All Implemented Interfaces:
Serializable
public class SharedClassPermissionCollection extends PermissionCollection
SharedClassPermissionCollection provides permission collection to support SharedClassPermission.- See Also:
SharedClassPermission
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SharedClassPermissionCollection()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Permission perm)
Adds a permission to this collection.Enumeration<Permission>
elements()
Returns permissions as an enumeration.boolean
implies(Permission perm)
Returnstrue
if the permission given is implied by any of the permissions in the collection.-
Methods declared in class java.security.PermissionCollection
elementsAsStream, isReadOnly, setReadOnly, toString
-
-
-
-
Constructor Detail
-
SharedClassPermissionCollection
@Deprecated public SharedClassPermissionCollection()
Deprecated.Constructs a new instance of this class.
-
-
Method Detail
-
add
public void add(Permission perm)
Adds a permission to this collection.- Specified by:
add
in classPermissionCollection
- Parameters:
perm
- Permission the permission object to add
-
elements
public Enumeration<Permission> elements()
Returns permissions as an enumeration.- Specified by:
elements
in classPermissionCollection
- Returns:
- Enumeration the permissions as an enumeration
- See Also:
PermissionCollection.elementsAsStream()
-
implies
public boolean implies(Permission perm)
Returnstrue
if the permission given is implied by any of the permissions in the collection.- Specified by:
implies
in classPermissionCollection
- Parameters:
perm
- Permission the permission to check- Returns:
- boolean whether the given permission is implied by any of the permissions in this collection
-
-