The addAllFormsByName method of the NetIOPermission Class contains the following signatures:
addAllFormsByName(int flags, String spec, IntRanges ports)
addAllFormsByName(int flags, String spec)
Adds all forms of the specified address. The address is added using the following procedure:
public void addAllFormsByName(int flags, String spec, IntRanges ports);
flags | The access flags, which consist of two separate flags combined with a logical OR operator (|). The first flag should be BIND, CONNECT, MULTICAST, or ALL_API_FLAGS to specify the connection type. The second flag should be either ALLOW or DENY to indicate whether the address being added should use the include or exclude rules. For convenience, instead of using the logical OR operator with the two flags, you can use one of the combination flags: ALLOWALL, DENYALL, ALLOWCONNECT, DENYCONNECT, ALLOWBIND, DENYBIND, ALLOWMULTICAST, or DENYMULTICAST. |
spec | The textual IP or host specification. |
ports | The ports that apply to the hosts or IPs. |
Adds all forms of the specified address. The address is added using the following procedure:
public void addAllFormsByName(int flags, String spec);
flags | The access flags, which consist of two separate flags combined with a logical OR operator (|). The first flag should be BIND, CONNECT, MULTICAST, or ALL_API_FLAGS to specify the connection type. The second flag should be either ALLOW or DENY to indicate whether the address being added should use the include or exclude rules. For convenience, instead of using the logical OR operator with the two flags, you can use one of the combination flags: ALLOWALL, DENYALL, ALLOWCONNECT, DENYCONNECT, ALLOWBIND, DENYBIND, ALLOWMULTICAST, or DENYMULTICAST. |
spec | The textual IP or host specification. |