Class LicenseRuntime
The LicenseRuntime is a class that performs the License validations for the application
Inheritance
Inherited Members
Namespace: ImageVault.Core.License.Meriworks
Assembly: ImageVault.Core.dll
Syntax
public static class LicenseRuntime
Remarks
The LicenseRuntime has a Version number. Every LicenseData has also a version number that is the smallest version that the license is compatible with. If the LicenseRuntime encounters a license with greater RuntimeVersion than the runtime, this License is not valid for the product. The thing that makes the RuntimeVersion to increase is when new RestrictionTypes are added or modified. Then we need a uptodate runtime to validate these restriction types.
To validate a License, use the ValidateLicense(String) method.
Properties
DefaultPublicKey
Gets the default meridium RSA public Key
Declaration
public static RSA DefaultPublicKey { get; }
Property Value
Type | Description |
---|---|
System.Security.Cryptography.RSA |
LicenseFileExists
Checks if the default license file exists
Declaration
public static bool LicenseFileExists { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
GetLicenseData(String)
Gets the licenseData for the supplied licenseName
Declaration
public static LicenseData GetLicenseData(string licenseName)
Parameters
Type | Name | Description |
---|---|---|
System.String | licenseName |
Returns
Type | Description |
---|---|
LicenseData |
ValidateLicense(String)
Validates the license for the named product.
Declaration
public static void ValidateLicense(string licenseName)
Parameters
Type | Name | Description |
---|---|---|
System.String | licenseName | The name of the product. If null, the value from the LicenseSettingsAttribute is used. |
ValidateLicenseData(LicenseData)
Validates the supplied license
Declaration
public static void ValidateLicenseData(LicenseData license)
Parameters
Type | Name | Description |
---|---|---|
LicenseData | license |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | |
LicenseException |