This method of the NetIOPermission Class adjusts this permission object with some run-time state.
public void adjustPermission(String tag, Object adjustment);
tag | The adjustment type. Everything but "codebase" is ignored. |
adjustment | This parameter must be an instance of java.net.URL for the "codebase" tag. |
The NetIOPermission only responds to the "codebase" adjustment type, and expects the adjustment parameter to be URL in that case. All other adjustment types are ignored.
If the URL is a file:// URL, and this permission allows connection back to the localhost if the cobebase URL is a file:// URL, localhost is added to the set of hosts that this permission allows connections to.
If the URL is not a file:// URL, and this permission allows connections back to non file:// URL hosts, the host of the codebase URL is added to the set of hosts that this permission allows connections to.