Package com.ferrumx.system.hardware
Class HardwareID
java.lang.Object
com.ferrumx.system.hardware.HardwareID
Hardware ID generation class based on the SHA256 digest of the ID in the following format :
"CPUID+BaseboardID+DiskIDs"
- Author:
- Egg-03
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
UsesExecutorService
to spawn threads as needed with each thread calling theCIM_SL.getPropertyValue(String, String)
directly or through the Win32 Classes to get specific parts of HWID which is then ultimately combined to form the final ID
-
Method Details
-
getHardwareID
UsesExecutorService
to spawn threads as needed with each thread calling theCIM_SL.getPropertyValue(String, String)
directly or through the Win32 Classes to get specific parts of HWID which is then ultimately combined to form the final ID- Returns:
- the HWID of type
String
in the format shown in the class description - Throws:
ExecutionException
- when the underlying functions defined inExecutorService.submit(java.util.concurrent.Callable)
throw an exceptionInterruptedException
- when any of the threads get interrupted
-