| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final InternalLogger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | Returns: byte array containing a MAC. null if no MAC can be found.Obtains the best MAC address found on local network interfaces. |
| pack-priv static int | Returns: positive - current is better, 0 - cannot tell from MAC addr, negative - candidate is better.
|
| private static int | Returns: positive - current is better, 0 - cannot tell, negative - candidate is better
|
| public static byte[] | defaultMachineId()
Returns the result of |
| public static String | |
| public static byte[] | |
| private static int | |
| private static void |
| EUI48_MAC_ADDRESS_LENGTH | back to summary |
|---|---|
| private static final int EUI48_MAC_ADDRESS_LENGTH | |
| EUI64_MAC_ADDRESS_LENGTH | back to summary |
|---|---|
| private static final int EUI64_MAC_ADDRESS_LENGTH | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| MacAddressUtil | back to summary |
|---|---|
| private MacAddressUtil() | |
| bestAvailableMac | back to summary |
|---|---|
| public static byte[] bestAvailableMac() Obtains the best MAC address found on local network interfaces. Generally speaking, an active network interface used on public networks is better than a local network interface.
| |
| compareAddresses | back to summary |
|---|---|
pack-priv static int compareAddresses(byte[] current, byte[] candidate)
| |
| compareAddresses | back to summary |
|---|---|
private static int compareAddresses(InetAddress current, InetAddress candidate)
| |
| defaultMachineId | back to summary |
|---|---|
| public static byte[] defaultMachineId() Returns the result of | |
| formatAddress | back to summary |
|---|---|
public static String formatAddress(byte[] addr)
| |
| parseMAC | back to summary |
|---|---|
| public static byte[] parseMAC(String value) Parse a EUI-48, MAC-48, or EUI-64 MAC address from a
| |
| scoreAddress | back to summary |
|---|---|
| private static int scoreAddress(InetAddress addr) | |
| validateMacSeparator | back to summary |
|---|---|
| private static void validateMacSeparator(char separator) | |