Class SimpleLicense.SimpleLicenseData
Object containing licensing information. To be encrypted, and stored as a key in appsettings.json.
Inherited Members
Namespace: Quantellia.WMServer.Auth.Model.Licensing
Assembly: WMServer.dll
Syntax
public class SimpleLicense.SimpleLicenseData
Constructors
SimpleLicenseData()
Creates an invalid simple license.
Declaration
public SimpleLicenseData()
SimpleLicenseData(DateTime)
Creates a license with an end date.
Declaration
public SimpleLicenseData(DateTime LicenseEndDateUTC)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | LicenseEndDateUTC | The date that the license ends at in UTC. |
Properties
IsValid
Whether the license is still valid.
Declaration
public bool IsValid { get; }
Property Value
| Type | Description |
|---|---|
| bool |
LicenseEndDateUTC
The date the license ends at in UTC.
Declaration
public DateTime LicenseEndDateUTC { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Methods
Deserialize(string)
Deserializes the license from an AES-256 encrypted format.
Declaration
public static SimpleLicense.SimpleLicenseData Deserialize(string cryptoString)
Parameters
| Type | Name | Description |
|---|---|---|
| string | cryptoString |
Returns
| Type | Description |
|---|---|
| SimpleLicense.SimpleLicenseData |
Serialize()
Serializes the license into an AES-256 encrypted format.
Declaration
public string Serialize()
Returns
| Type | Description |
|---|---|
| string |