public class LinuxKeySourceProvider extends java.lang.Object implements IKeySourceProvider
IKeySourceProvider used for Linux systems. If the machine is running systemd,
the contents of /etc/machine-id are used as key source.
If not, or the machine-id file is empty (e.g. on WSL1), MAC addresses found on the system are sorted and concatenated to form the key.| Constructor and Description |
|---|
LinuxKeySourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getKeySource()
Returns bytes from the either the machine-id file or the MAC addresses on the system.
|
public byte[] getKeySource()
throws KeySourceProviderException
getKeySource in interface IKeySourceProviderKeySourceProviderException