Class GetKeyModel

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

public class GetKeyModel extends RequestModel
The parameters that are used when calling the Key.GetKey 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.
    • 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
      Allows you specify the floatingTimeInterval. The current version of the SDK uses a modelVersion=3, which means that all activated devices (node-locked and floating) will be returned in ActivatedMachines, independent of the floatingTimeInterval value. This value is only taken into account in the additional metadata that is returned (if Metadata=true). In most use cases, this parameter does not need to be used.
  • Constructor Details

    • GetKeyModel

      public GetKeyModel()
    • GetKeyModel

      public GetKeyModel(int productId, String key)
    • GetKeyModel

      public GetKeyModel(int productId, String key, int floatingTimeInterval, boolean metadata)