Search Results for

    Show / Hide Table of Contents

    Class LicenseData

    Summary description for LicenseData.

    Inheritance
    System.Object
    LicenseData
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Core.License.Meriworks
    Assembly: ImageVault.Core.dll
    Syntax
    public class LicenseData

    Constructors

    LicenseData()

    Declaration
    public LicenseData()

    Fields

    LicenseId

    Id of the license

    Declaration
    public int LicenseId
    Field Value
    Type Description
    System.Int32

    Name

    Name of the product

    Declaration
    public string Name
    Field Value
    Type Description
    System.String

    SignHash

    Defines the Signed hash of the license

    Declaration
    public string SignHash
    Field Value
    Type Description
    System.String

    Properties

    IsDemoLicense

    Checks wether a DemoRestriction is present in the RestrictionList

    Declaration
    public bool IsDemoLicense { get; }
    Property Value
    Type Description
    System.Boolean

    IsDeveloperLicense

    Checks wether a DeveloperRestriction is present in the RestrictionList

    Declaration
    public bool IsDeveloperLicense { get; }
    Property Value
    Type Description
    System.Boolean

    LicenseVersionNumber

    Minimum version of the license

    Declaration
    public int LicenseVersionNumber { get; set; }
    Property Value
    Type Description
    System.Int32

    MetaData

    Defines the metadata of the license

    Declaration
    public XMLSerializableDictionary MetaData { get; }
    Property Value
    Type Description
    XMLSerializableDictionary

    Restrictions

    Defines the restrictions of the license

    Declaration
    public RestrictionList Restrictions { get; set; }
    Property Value
    Type Description
    RestrictionList

    SignDataHash

    Gets the Hash of the licenseData used for generating and verifying the signature.

    Declaration
    public byte[] SignDataHash { get; }
    Property Value
    Type Description
    System.Byte[]

    ValidTo

    The Date that the license are valid to

    Declaration
    public DateTime? ValidTo { get; }
    Property Value
    Type Description
    System.Nullable<System.DateTime>

    Methods

    GenerateSignature(RSA)

    Generates a Signature for the LicenseData

    Declaration
    public void GenerateSignature(RSA key)
    Parameters
    Type Name Description
    System.Security.Cryptography.RSA key

    LoadFromXml(String)

    Creates a licenseData from an xml string

    Declaration
    public static LicenseData LoadFromXml(string xml)
    Parameters
    Type Name Description
    System.String xml
    Returns
    Type Description
    LicenseData

    SaveToXmlString()

    Serializes the LicenseData to an XML string

    Declaration
    public string SaveToXmlString()
    Returns
    Type Description
    System.String

    Validate(RSA)

    Validates the Licenses restrictions plus the signature.

    Declaration
    public void Validate(RSA publicKey)
    Parameters
    Type Name Description
    System.Security.Cryptography.RSA publicKey

    ValidateSignature(RSA)

    Validates the signature of the license

    Declaration
    public void ValidateSignature(RSA publicKey)
    Parameters
    Type Name Description
    System.Security.Cryptography.RSA publicKey
    In This Article
    Back to top (c) Meriworks 2002-2022