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

LicenseFile Methods

The LicenseFile type exposes the following members.

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).