Class MachineId

java.lang.Object
com.vaadin.pro.licensechecker.MachineId

public class MachineId extends Object
  • Constructor Details

    • MachineId

      public MachineId()
      Generates both v1 and v2 machine IDs.
  • Method Details

    • stablePartMatches

      public boolean stablePartMatches(String licenseMachineId)
      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

      public static void main(String[] args)
    • get

      @Deprecated public static String get()
      Deprecated.
      Use MachineId() and instance methods instead.
      Returns the primary machine ID as a string.
      Returns:
      the machine ID