|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.Permission
java.security.BasicPermission
com.ibm.oti.shared.SharedClassPermission
public class SharedClassPermission
Security permission to govern classloader access to the shared class cache.
Usage: To grant permission to a classloader, add permission in java.policy file.
Eg. 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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.security.Permission |
|---|
checkGuard, getName, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.security.BasicPermissiono - the object to compare with this object
true
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.BasicPermissionBasicPermissionCollectionpublic 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 check
true if the argument permission
is implied by the receiver,
and false if it is not.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||