License Machine ID it's issued for (e.g. comp-1 or auto-id)
License valid until date
Optional
_signature: stringLicense secp256k1 signature to validate above parameters issued by certain issuer
Private
_issuerLicense issuer (e.g. "alex")
Private
_machineLicense Machine ID it's issued for (e.g. comp-1 or auto-id)
Private
Optional
_signatureLicense secp256k1 signature to validate above parameters issued by certain issuer
Private
_validLicense valid until date
Get license issuer ID
Get license Machine ID
Get raw license string (without secp256k1 signature)
Get raw license hash (mainly used internallly)
Get license secp256k1 signature to validate against
Get secp256k1 signed license string
UnsignedLicenseError if the license is unsigned
Get license valid until date
Sign license using an issuer private key
Issuer private key (e.g. Secp256k1.utils.randomPrivateKey())
Returns same License instance
Validate secp256k1 signed license
MissingPublicKeyError if public key missing for a signed license
UnsignedLicenseError if the license is unsigned
Optional
issuerPublicKey: PublicKeyIssuer public key (e.g. Secp256k1.getPublicKey(PRIVATE_KEY))
Returns true if license has both valid signature (if applicable) and date
Validate secp256k1 signed license against an issuer public key
UnsignedLicenseError if the license is unsigned
Issuer public key (e.g. Secp256k1.getPublicKey(PRIVATE_KEY))
Returns true if license has a valid signature generated by the passed issuer
Static
createCreates a License instance with defaults if custom parameters skipped
License issuer (e.g. "alex")
Optional
machineId: stringLicense Machine ID it's issued for (e.g. comp-1 or auto-id)
Optional
validUntil: DateLicense valid until date
Optional
signature: stringLicense secp256k1 signature to validate above parameters issued by certain issuer
a License instance initialized with either passed parameters or defaults
Static
fromStatic
fromStatic
getGenerated using TypeDoc
License issuer (e.g. "alex")