public class SharedClassPermission
extends java.security.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";
"read" allows a ClassLoader to load classes from the shared cache.
"write" allows a ClassLoader to add classes to the shared cache.
| Constructor and Description |
|---|
SharedClassPermission(java.lang.ClassLoader loader,
java.lang.String actions)
Constructs a new instance of this class.
|
SharedClassPermission(java.lang.String classLoaderClassName,
java.lang.String actions)
Constructs a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compares the argument to the receiver, and answers
true
if they represent the same object using a class
specific comparison. |
java.lang.String |
getActions()
Answers the actions associated with the receiver.
|
int |
hashCode()
Answers an integer hash code for the receiver.
|
boolean |
implies(java.security.Permission permission)
Indicates whether the argument permission is implied
by the receiver.
|
java.security.PermissionCollection |
newPermissionCollection()
Answers a new PermissionCollection for holding permissions
of this class.
|
public SharedClassPermission(java.lang.ClassLoader loader,
java.lang.String actions)
loader - java.lang.ClassLoader.
The ClassLoader requiring the permission.actions - java.lang.String.
The actions which are applicable to it.public SharedClassPermission(java.lang.String classLoaderClassName,
java.lang.String actions)
classLoaderClassName - java.lang.String.
The className of the ClassLoader requiring the permission.actions - java.lang.String.
The actions which are applicable to it.public boolean equals(java.lang.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 java.security.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 java.security.PermissionCollection newPermissionCollection()
newPermissionCollection in class java.security.BasicPermissionPermissionCollectionpublic int hashCode()
true when passed to
equals must answer the same value for this
method.
hashCode in class java.security.BasicPermissionequals(java.lang.Object)public java.lang.String getActions()
getActions in class java.security.BasicPermissionpublic boolean implies(java.security.Permission permission)
implies in class java.security.BasicPermissionpermission - java.security.Permission.
The permission to checktrue if the argument permission
is implied by the receiver,
and false if it is not.Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 1998, 2021, IBM Corp. and others.