public class SharedClassPermission extends BasicPermission
Usage:
To grant permission to a ClassLoader, add permission in the java.policy file.
For example,
com.ibm.oti.shared.SharedClassPermission "classloaders.myClassLoader", "read,write";
Possible actions are:
| Constructor and Description |
|---|
SharedClassPermission(ClassLoader loader,
String actions)
Constructs a new instance of this class.
|
SharedClassPermission(String classLoaderClassName,
String actions)
Constructs a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compares the argument to the receiver, and answers
true
if they represent the same object using a class
specific comparison. |
String |
getActions()
Answers the actions associated with the receiver.
|
int |
hashCode()
Answers the integer hash code for the receiver.
|
boolean |
implies(Permission permission)
Indicates whether the argument permission is implied
by the receiver.
|
PermissionCollection |
newPermissionCollection()
Answers a new PermissionCollection for holding permissions
of this class.
|
checkGuard, getName, toStringpublic SharedClassPermission(ClassLoader loader, String actions)
loader - ClassLoader the ClassLoader requiring the permissionactions - String the actions which are applicable to itpublic boolean equals(Object o)
true
if they represent the same object using a class
specific comparison.
In this case, the receiver must be for the same property as the argument, and must have the same actions.
equals in class BasicPermissiono - the object to compare with this objecttrue if the object is the same as this object,
false if it is different from this objecthashCode()public PermissionCollection newPermissionCollection()
newPermissionCollection in class BasicPermissionPermissionCollectionpublic int hashCode()
Any two objects which answer true when passed to
equals must answer the same value for this method.
hashCode in class BasicPermissionequals(java.lang.Object)public String getActions()
The result will be either "read", "write", or "read,write".
getActions in class BasicPermissionpublic boolean implies(Permission permission)
implies in class BasicPermissionpermission - Permission the permission to checktrue if the argument permission is implied
by the receiver, and false if it is notEclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 1998, 2025 IBM Corp. and others.