CAS.Lib.CodeProtect Namespace
CAS.Lib.CodeProtect.LicenseDsc Namespace
CAS.Lib.CodeProtect.LicenseDsc.Constraints Namespace
CAS.Lib.CodeProtect.Properties Namespace
OOI CodeProtect

LicenseFile Members

The LicenseFile type exposes the following members.

Constructors


  Name Description
Public method LicenseFile()()()()
Creates an empty license

Methods


  Name Description
Public method Dispose
When overridden in a derived class, disposes of the resources used by the license.
Public method Equals(System.Object) (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetCustomFieldValue
Returns the value for an item set in the CustomData that matches the entered key. If the CustomData has not yet been set then a null exception will be thrown. Also if the passed in String is empty an argument exception is thrown.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Static member LoadFile(Stream, RSACryptoServiceProvider, Boolean)
Loads the specified file to create an LicenseFile
Public method Static member LoadFile(Stream, RSACryptoServiceProvider)
Loads the specified file to create an LicenseFile and checks the digital signature
Public method Static member LoadFile(FileInfo, RSACryptoServiceProvider, Boolean)
Loads the specified file to create a LicenseFile.
Protected method MemberwiseClone (Inherited from Object.)
Public method ResetCreationStatistics
Resets the date information of this license. This includes the Creation, Modification, and First Use dates. It also includes changing the Statistics DateTimeLastAccessed since this is for User Access info not creator.
Public method SaveFile(Stream, RSA)
Saves the license to the specified path using the provided Stream by the stream parameter.
Public method ToString
Returns a String that represents the current LicenseFile. This currently just returns the product full name.
Public method ToXmlSignedXmlDocument()()()()
Converts this LicenseFile to a XmlDocument containing the license.
Public method Static member UpgradeLicense(Stream)
Upgrades the license.
Public method Static member UpgradeLicense(String)
Upgrades the license
Public method ValidateLicense
Validate this license against the defined IConstraints in the Constraints List (System.Collections.Generic.List).

Properties


  Name Description
Public property Constraints
Gets or Sets the Constraints List (System.Collections.Generic.List) for this license.
Public property CreationDate
Gets the DateTime this license was created.
Public property CustomData
Gets or Sets the CustomData for this license.
Public property FailureReason
Gets or Sets the reason a failure occurred. This is an empty String if no error occurred.
Public property FirstUsesDate
Gets the DateTime this license was first used.
Public property HardwareKeyToken
Gets or sets the hardware key token. this HardwareKeyToken is based on the information int the license
Public property HardwareKeyTokenBasedOnDevice
HardwareKeyToken Based On Device data (Processor ID and Motherboard device ID)
Public property InstallationInstanceGUID
Gets the license key (XML string representing the license) granted for this license.
Public property IsDirty
Gets if this license was modified since it was last saved.
Public property IsReadOnly
Gets or Sets if this license can only be read and not modified.
Public property Issuer
Gets or Sets the Issuer object for this license.
Public property LicenseKey
This will generate the Hash key based upon the current installation instance GUID.
Public property LicenseKeyToken
Public property LicenseUID
The license unique identifier
Public property LicModificationUID
The license unique identifier used to upgrade this license.
Public property ModificationDate
Gets the DateTime this license was last modified.
Public property Product
Gets or Sets the Product object declared for this license.
Public property RunTimeConstrain
"Limits the runtime of the program in hours."
Public property Statistics
Gets or Sets the Statistics object for this license.
Public property User
Gets or Sets the User object who owns this license.
Public property VolumeConstrain
"Constrains number of items licensed program can instantiate, e.g. number of process variables, number of interfaces, etc."
Public property Warnings
Gets or sets the wornings.