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
-
LicenseValidator
- Implements
- Inherited Members
- Extension Methods
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
licensePairsPair<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
licensePairswas 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.