Class KeyMetadata
Metadata related to the license key. Note, this will not always contain value.
Inheritance
Inherited Members
Namespace: SKM.V3.Models
Assembly: Cryptolens.Licensing.dll
Syntax
public class KeyMetadata
Properties
ActivatedMachines
The number of activated machines for this license key.
Declaration
public int ActivatedMachines { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LicenseStatus
Additional information about the license key. This variable will use the 'feature definitions' (that you can define in the dashboard for a given product) and the license properties to determine if the license is valid or not (eg. if it has expired).
Declaration
public LicenseStatus LicenseStatus { get; set; }
Property Value
Type | Description |
---|---|
LicenseStatus |
Signature
The Signature of the metadata object.
Declaration
public string Signature { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UsedFloatingMachines
The number of active floating machine codes for a specific FloatingTimeInterval. Tip: If you want to find the number of unused machines, subtract this value from maxNumberOfMachines. If overdraft is used, you need to add the maxOverdraft value to maxNumberOfMachines.
Declaration
public int UsedFloatingMachines { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
VerifySignature(String)
Verifies the integrity of the object (eg. it has not been changed since it was generated on the server).
Declaration
public bool VerifySignature(string RSAPublicKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | RSAPublicKey | Your public key (see this page https://app.cryptolens.io/docs/api/v3/QuickStart) |
Returns
Type | Description |
---|---|
System.Boolean | True if the signature is correct and false otherwise. |