The NetIOPermission Class contains the following methods:
addAddress adds an InetAddress object to the permissions with no port rules.
addAllFormsByName adds all forms of the specified address.
addConnectHost adds an allowed or denied host name pattern to the connect permissions.
addGlobalPortRules adds global port rules for the specified connection type.
addGlobalPorts adds a global port range for the specified connection types.
addHost adds a host name pattern to the permissions with no port rules.
addHostRules adds a set of host rules and per-host port rules for the specified access types.
addIP adds a single 32-bit address to the permissions with no port rules.
addIPRules adds a set of IP rules and per-IP port rules from the string form for the specified access types.
addIPs adds a 32-bit address range to the permissions with the specified port rules and the specified access types.
addPattern parses a pattern and adds it to the permission as an IP or host rule, as appropriate.
adjustPermission adjusts this permission object with some run-time state.
check determines whether the specified networking I/O operation is allowed by the permission object.
combine creates and returns a new NetIOPermission object that is a combination of the current permission object and the specified permission object.
compareSet compares the NetIOPermission instance with a specified permission object.
copy retrieves a copy of the NetIOPermission instance.
decode decodes the contents of the specified data stream into this permission object.
encode encodes the contents of this permission object and sends the encoded data to the specified stream.
getCanConnectToFileURLCodeBase returns the flag that controls whether classes that possess this permission can connect back to the local host if from a file:// URL codebase.
getCanConnectToNonFileURLCodeBase retrieves the flag that controls whether classes that possess this permission can connect back to non-file:// URL codebase hosts.
getGlobalPortRules obtains the global port rules for the specified connection type in String form.
getGlobalPorts obtains the global ports rules for the specified connection type.
getHostRules obtains the combined set of hostname patterns and corresponding port rules for the specified connection type, in String form.
getHosts obtains a combined pattern that matches all the hostname patterns for the specified connection type.
getIPRules obtains the combined set of 32-bit IP ranges and corresponding port rules for the specified connection type, in String form.
getIPs obtains the combined set of 32-bit IP ranges for the specified connection type.
getPorts obtains the port rules corresponding to each of the hosts or IPs for the specified connection type.
mapFormat retrieves a permission-specific tag, given an encoding format.
reset resets the permission state to empty.
setCanConnectToFileURLCodeBase sets the flag that controls whether classes that possess this permission can connect to the local host if the codebase URL associated with the classes is a file:// URL.
setCanConnectToNonFileURLCodeBase sets the flag that controls whether classes that possess this permission can connect back to their originating host if the codebase URL is not a file:// URL.
supportedFormats retrieves the encoding formats that the permission type supports.
toString retrieves a textual representation of the permission object.