Package com.vaadin.pro.licensechecker
Class MachineId
java.lang.Object
com.vaadin.pro.licensechecker.MachineId
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MachineId
public MachineId()Generates both v1 and v2 machine IDs.
-
-
Method Details
-
stablePartMatches
Checks if this machine ID matches the provided license machine ID. Handles both v1 and v2 license IDs automatically.- Parameters:
licenseMachineId- the machine ID from the license- Returns:
- true if this machine ID matches the license machine ID
- Throws:
IllegalStateException- if license requires v1 ID but OSHI is not available
-
main
-
get
Deprecated.UseMachineId()and instance methods instead.Returns the primary machine ID as a string.- Returns:
- the machine ID
-
MachineId()and instance methods instead.