This interface provides a method for modifying a permission object to give context information.
void adjustPermission (String tag, Object adjustment);
Modifies the permission object so that it gives context information. The tag parameter identifies the type of adjustment being made. The adjustment parameter is an object specific to the type of adjustment being made.
The following table lists the values for the tag parameter that are recognized by the system permissions, and it also describes the corresponding adjustment objects.
- "codebase"
- The adjustment object is the java.net.URL instance that specifies where classes that will possess the permission are loaded from. The networking I/O permission class (com.ms.security.permissions.NetIOPermission) and file I/O permission class (com.ms.security.permissions.FileIOPermission) respond to this adjustment type.
- "classloader"
- The adjustment object is the java.lang.ClassLoader instance used to load the classes that will possess the permission. The reflection permission class (com.ms.security.permissions.ReflectionPermission) responds to this adjustment type.
- "thread group"
- The adjustment object is the java.lang.ThreadGroup instance that the classes with the permission should have access to. The threading permission class (com.ms.security.permissions.ThreadPermission) responds to this adjustment type.
Note If this method is called with an adjustment object that it does not recognize, the method does nothing. No exception is thrown.
Return Value:
No return value.
Parameter | Description |
tag
| The adjustment type.
|
adjustment
| The adjustment object.
|