ProLicenseFile
Static class in Oadm.Sdk.Licensing · Oadm.Sdk.dll
The OADM PRO license key (docs/spec/licensing.md): a license key in the plugin license format (LicenseFile: OADM1.<content>.<signature>, ECDSA P-256 with SHA-256 over the content bytes) whose content names the product ProLicenseFile.ProductId and adds plan; a trial lists the feature ProLicenseFile.TrialFeature and the plan’s devices are the limit ProLicenseFile.DevicesLimit.
public static class ProLicenseFileMethods
Section titled “Methods”static ProLicenseInfo Check(string text, IEnumerable<string> publicKeys, string serverId, DateOnly today)What text says for the server serverId on today: checked with each of publicKeys (base64 SubjectPublicKeyInfo) until one matches. Never throws for a bad key.
static string Sign(string privateKeyPem, string serverId, string customer, string plan, long? maxDevices, DateOnly issued, DateOnly? expires, bool trial)A PRO license key signed with privateKeyPem (PKCS#8 PEM of an ECDSA P-256 key): the reference of the format the license server produces, and the signer of the tests and of fake mode.
Fields
Section titled “Fields”DevicesLimit
Section titled “DevicesLimit”const string DevicesLimit = "devices"The license limit that holds the devices of the plan.
ProductId
Section titled “ProductId”const string ProductId = "oadm.pro"The “plugin” a PRO license names.
TrialFeature
Section titled “TrialFeature”const string TrialFeature = "trial"The license feature of a trial license.