Microsoft SDK for Java

adjustPermission

This method of the IadjustablePermission Interface 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.

Syntax

void adjustPermission(String tag, Object adjustment);

Parameters

tag The adjustment type (see table of values below).
adjustment The adjustment object.

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.

Note   If this method is called with an adjustment object that it does not recognize, the method does nothing. No exception is thrown.

Values for the tag Parameter

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.