The SecureLicense type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SecureLicense()()()() | Initializes a new instance of the SecureLicense class | |
SecureLicense(String) |
Instantiates a secure license.
|
Methods
Name | Description | |
---|---|---|
Activate |
Activates a license specified by the licenseKey parameter.
If the licenseKey parameter's license type is 'ActivationKey', the LicenseServiceURL property must be set.
| |
Deactivate()()()() |
Deactivates the current license on the current system.
| |
Deactivate(Boolean) |
Deactivates the current license on the current system.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetActivationInfo |
Gets activation information associated with the current license.
This activation information is created when activating or unlocking a license key is passed to the SaveActivationInfo(String, array<Byte>[]()[][]) method.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetSystemId |
Gets a system identifier for the current system using the specified sysIdentifierOptions
| |
GetSystemIdentifierParts |
Gets a list of bytes that represent the system identifiers that are used to generate the system id.
Override this method to use your own system identifier instead of the default one that is provided by the SecureLicense class.
If you override this method, there should at least be one item in they byte array list that is returned. If the byte array list
contains more than eight items, all the items after the eighth item will be ignored. The byte array values that are returned
must be the same for the same machine/system so that the license validation will return the same result upon subsequent license validation.
| |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
IsFlagEnabled |
Checks if a flag is enabled for the specified flagIndex.
| |
Load |
Loads a license from the specified license store (LicenseFilePath, RegistryKey + RegistryValueName or IsolatedStorageScope + IsolatedStoragePath).
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Save |
Saves a license into the specified license store (LicenseFilePath, RegistryKey + RegistryValueName or IsolatedStorageScope + IsolatedStoragePath).
| |
SaveActivationInfo |
Saves activation information associated with the current license.
This activation information is created when activating or unlocking a license key is passed to the SaveActivationInfo(String, array<Byte>[]()[][]) method.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
ActivationDate |
The date on which the current license is activated.
| |
CreatedDate |
The date on which the current license was created.
| |
CustomData |
The custom data that is embedded in the current license.
| |
ExpiryDate |
The exact date on which the license will expire.
| |
ExpiryDays |
The number of days the license will expire after first use.
| |
HasExpiryDateLimit |
True if the current license has exact expiry date specified.
| |
HasExpiryDaysLimit |
True if the current license has number of expiry days specified.
| |
HasExpiryLimit |
True if any expiry limit (exact date or number of days) specified.
| |
IsolatedStoragePath |
The isolated storage path that will be used for the isolated storage where the license data will be stored or loaded from.
| |
IsolatedStorageScope |
The isolated storage scope that will be used for the isolated storage where the license data will be stored or loaded from.
| |
IsValid |
Returns true if the currently loaded license is valid.
| |
LicenseFilePath |
The file path that will be used to load and store license data.
| |
LicenseKeyType |
The current license type ("Unlock Key" or "Activation Key").
| |
LicenseServiceChecks |
The type of license check that will be performed when loading a license.
| |
LicenseServiceErrorCode |
Gets the license service error code for the recent response from the license service.
| |
LicenseServiceErrorMessage |
Gets the license service error message for the recent response from the license service.
| |
LicenseServiceUrl |
If an activation license key is being activated, this URL will be used as the end point of the license service URL that is used when activating, checking and deactivating license keys.
| |
RegistryKey |
The registry key name that will be used to load and store license data.
| |
RegistryValueName |
The registry value name that will be used to load and store license data.
| |
RemainingDaysBeforeExpiry |
The number of days before the current license expires.
| |
Status |
Returns the current license validation status
| |
TotalRemainingDaysBeforeExpiry |
The number of days before the current license expires expressed in whole and fractional days.
| |
ValidationKey |
Gets or sets the validation (public) key that will be used to check and validate license keys.
|