Class GetHashMac
- java.lang.Object
-
- com.microsoft.azure.maven.telemetry.GetHashMac
-
public class GetHashMac extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static String[]INVALID_MAC_ADDRESSprivate static PatternMAC_PATTERNprivate static StringMAC_REGEXprivate static String[]UNIX_COMMANDprivate static String[]WINDOWS_COMMAND
-
Constructor Summary
Constructors Constructor Description GetHashMac()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetHashMac()private static StringgetRawMac()private static StringgetRawMacWithNetworkInterface()private static Stringhash(String mac)private static booleanisValidMac(String mac)private static booleanisValidRawMac(String raw)
-
-
-
Field Detail
-
MAC_REGEX
private static final String MAC_REGEX
- See Also:
- Constant Field Values
-
MAC_PATTERN
private static final Pattern MAC_PATTERN
-
UNIX_COMMAND
private static final String[] UNIX_COMMAND
-
WINDOWS_COMMAND
private static final String[] WINDOWS_COMMAND
-
INVALID_MAC_ADDRESS
private static final String[] INVALID_MAC_ADDRESS
-
-
Method Detail
-
getHashMac
public static String getHashMac()
-
isValidMac
private static boolean isValidMac(String mac)
-
isValidRawMac
private static boolean isValidRawMac(String raw)
-
getRawMac
private static String getRawMac()
-
getRawMacWithNetworkInterface
private static String getRawMacWithNetworkInterface()
-
-