The PackageLicenseHelper type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCreateSignatureBytes
This method returns a byte representation of the signatureString. Here is an example of how to create an signature string:

Examples

CopyC#
string signatureString;
if (isPermanent)
{
    signatureString = string.Format("{0}#{1}#{2}", installationId, productId, isPermanent);
}
else
{
    signatureString = string.Format("{0}#{1}#{2}#{3}", installationId, productId, isPermanent, new XAttribute("date", expiresTime).Value);
}
Public methodStatic memberCreateSignatureHashAlgorithm
This method returns a hash algorithm that can be used when validateting a package license definition.
Public methodStatic memberGetLicenseDefinition
This method returns a license defintion for the given pacakge id
Public methodStatic memberRemoveLicenseDefintion
Removes a license definition given the pacakge id
Public methodStatic memberStoreLicenseDefinition
Stores the given license defintion.

See Also