Aether Utilities Aether Utilities
Aether Utilities Aether Utilities
DocFX + Singulink = ♥

Search Results for

    Edit this page

    Class LicenseValidator

    Namespace
    AetherUtils.Core.Licensing
    Assembly
    AetherUtils.Core.dll
    Contains methods for validating a license file.
    public abstract class LicenseValidator : IValidator<Pair<string, string>>
    Inheritance
    object
    LicenseValidator
    Implements
    IValidator<Pair<string, string>>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Extension Methods
    TypeExtensions.CanSerializeJson<T>(T)
    TypeExtensions.CanSerializeXml<T>(T)
    TypeExtensions.SerializeJson<T>(T)
    TypeExtensions.SerializeXml<T>(T)

    Methods

    Validate(params Pair<string, string>[])

    Validates licenses according to an array of license pairs with their public keys.
    public static List<IValidationFailure> Validate(params Pair<string, string>[] licensePairs)

    Parameters

    licensePairs Pair<string, string>[]
    An array of license pairs. Each pair should be of the format:
    Pair(license, publicKey)
    The license can be either an XML string or the full path to a license file.
    The public key should the key that was used for signing the license.

    Returns

    List<IValidationFailure>
    A list of IValidationFailure representing the results of validation.

    Exceptions

    ArgumentException
    If licensePairs was empty.
    ArgumentException
    If the license text for a license pair was empty or null.
    ArgumentException
    If the public key for a license pair was empty or null.
    (c) 2024 Ethan Hann. All rights reserved.