Class SharedClassPermissionCollection
java.lang.Object
java.security.PermissionCollection
com.ibm.oti.shared.SharedClassPermissionCollection
- All Implemented Interfaces:
Serializable
SharedClassPermissionCollection provides permission collection to support SharedClassPermission.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Permission perm) Adds a permission to this collection.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 Details
-
SharedClassPermissionCollection
Deprecated.Constructs a new instance of this class.
-
-
Method Details
-
add
Adds a permission to this collection.- Specified by:
add
in classPermissionCollection
- Parameters:
perm
- Permission the permission object to add
-
elements
Returns permissions as an enumeration.- Specified by:
elements
in classPermissionCollection
- Returns:
- Enumeration the permissions as an enumeration
- See Also:
-
implies
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
-