Class ActivateModel
java.lang.Object
io.cryptolens.models.RequestModel
io.cryptolens.models.ActivateModel
The parameters that are used when calling the Key.Activate method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
An integer that allows you to restrict the information returned in the license key data object.int
When set to something greater than zero, floating licensing will be enabled.Allows you to specify a friendly name for the activated device, for example the employee's email.The Key string, eg.The machine code (a string that identifies a device) for activation.int
When set to something greater than zero (and assuming FloatingTimeInterval is set too) floating licensing will permit a license overdraft (eg.boolean
Includes additional information about the license key, such as number of activated devices, etc.int
The product id, which can be found on the product page.Fields inherited from class io.cryptolens.models.RequestModel
LicenseServerUrl
-
Constructor Summary
ConstructorsConstructorDescriptionActivateModel
(int productId, String key, String machineCode) ActivateModel
(int productId, String key, String machineCode, int floatingTimeInterval) ActivateModel
(int productId, String key, String machineCode, int fieldsToReturn, boolean metadata, int floatingTimeInterval, int maxOverdraft) ActivateModel
(int productId, String key, String machineCode, int fieldsToReturn, boolean metadata, int floatingTimeInterval, int maxOverdraft, String friendlyName) ActivateModel
(int productId, String key, String machineCode, int floatingTimeInterval, int maxOverdraft) ActivateModel
(int productId, String key, String machineCode, int floatingTimeInterval, int maxOverdraft, String friendlyName) ActivateModel
(int productId, String key, String machineCode, int floatingTimeInterval, String friendlyName) ActivateModel
(int productId, String key, String machineCode, String friendlyName) -
Method Summary
-
Field Details
-
ProductId
public int ProductIdThe product id, which can be found on the product page. -
Key
The Key string, eg. AAAA-BBBB-CCCC-DDDD. -
MachineCode
The machine code (a string that identifies a device) for activation. -
FieldsToReturn
public int FieldsToReturnAn 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 MetadataIncludes additional information about the license key, such as number of activated devices, etc. -
FloatingTimeInterval
public int FloatingTimeIntervalWhen 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 MaxOverdraftWhen 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
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
-
ActivateModel
-
ActivateModel
-
ActivateModel
-
ActivateModel
-
ActivateModel
-
ActivateModel
-
ActivateModel
-