Package javax0.license3j.hardware
Class Network.Interface.Selector
- java.lang.Object
-
- javax0.license3j.hardware.Network.Interface.Selector
-
- Enclosing class:
- Network.Interface
public static class Network.Interface.Selector extends Object
-
-
Constructor Summary
Constructors Constructor Description Selector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
interfaceAllowed(String regex)
Add a regular expression to the set of regular expressions that may match the name of the interface names to be included into the calculation of the machine ID.void
interfaceDenied(String regex)
Add a regular expression to the set of regular expressions that may match the name of the interface names to be excluded from the calculation of the machine ID.
-
-
-
Method Detail
-
interfaceAllowed
public void interfaceAllowed(String regex)
Add a regular expression to the set of regular expressions that may match the name of the interface names to be included into the calculation of the machine ID. If any of such regular expressions matches the name of the network interface name and none of thedenied list
then the interface will be used in the calculation of the machine id.- Parameters:
regex
- the regular expression that may match the name of the interface name
-
interfaceDenied
public void interfaceDenied(String regex)
Add a regular expression to the set of regular expressions that may match the name of the interface names to be excluded from the calculation of the machine ID. If any of such regular expressions matches the name of the network interface name then the interface will NOT be used in the calculation of the machine id.- Parameters:
regex
- the regular expression that may match the name of the interface name to exclude the interface from the machine ID calculation
-
-