Class ActivateModel

java.lang.Object
io.cryptolens.models.RequestModel
io.cryptolens.models.ActivateModel

public class ActivateModel extends RequestModel
The parameters that are used when calling the Key.Activate method.
  • Field Details

    • ProductId

      public int ProductId
      The product id, which can be found on the product page.
    • Key

      public String Key
      The Key string, eg. AAAA-BBBB-CCCC-DDDD.
    • MachineCode

      public String MachineCode
      The machine code (a string that identifies a device) for activation.
    • FieldsToReturn

      public int FieldsToReturn
      An integer that allows you to restrict the information returned in the license key data object. Please read https://app.cryptolens.io/docs/api/v3/Activate#remarks for more details.
    • Metadata

      public boolean Metadata
      Includes additional information about the license key, such as number of activated devices, etc.
    • FloatingTimeInterval

      public int FloatingTimeInterval
      When set to something greater than zero, floating licensing will be enabled. The time interval is then used to check that no more than the allowed number of machine codes (specified in maximumNumberOfMachines) have been activated in that time period (in seconds).
    • MaxOverdraft

      public int MaxOverdraft
      When set to something greater than zero (and assuming FloatingTimeInterval is set too) floating licensing will permit a license overdraft (eg. activation will succeed even if maximumNumberOfMachines is reached). MaxOverdraft value specifies how much we can exceed the maximumNumberOfMachines value.
    • FriendlyName

      public String FriendlyName
      Allows you to specify a friendly name for the activated device, for example the employee's email. Friendly name does not impact the number of active machine codes / seats, but it offers an easy way of linking a machine/seat with a user. For added security, you can HMAC hash this value.
      The computer name can, as an example, be used as the friendly name: String friendlyName = InetAddress.getLocalHost().getHostName();
  • Constructor Details

    • ActivateModel

      public ActivateModel()
    • ActivateModel

      public ActivateModel(int productId, String key, String machineCode)
    • ActivateModel

      public ActivateModel(int productId, String key, String machineCode, String friendlyName)
    • ActivateModel

      public ActivateModel(int productId, String key, String machineCode, int floatingTimeInterval)
    • ActivateModel

      public ActivateModel(int productId, String key, String machineCode, int floatingTimeInterval, String friendlyName)
    • ActivateModel

      public ActivateModel(int productId, String key, String machineCode, int floatingTimeInterval, int maxOverdraft)
    • ActivateModel

      public ActivateModel(int productId, String key, String machineCode, int floatingTimeInterval, int maxOverdraft, String friendlyName)
    • ActivateModel

      public ActivateModel(int productId, String key, String machineCode, int fieldsToReturn, boolean metadata, int floatingTimeInterval, int maxOverdraft)
    • ActivateModel

      public ActivateModel(int productId, String key, String machineCode, int fieldsToReturn, boolean metadata, int floatingTimeInterval, int maxOverdraft, String friendlyName)