ModuleLicensesHelperCreateModuleLicense Method |
Creates a module license containing given module license data and signature based on given private key.
Namespace: CMS.ModuleLicensesAssembly: CMS.Modules (in CMS.Modules.dll) Version: 13.0.131
Syntax public static string CreateModuleLicense(
string licenseData,
string privateKey
)
Parameters
- licenseData
- Type: SystemString
Data to be stored in module license - privateKey
- Type: SystemString
Private key, generated by GenerateKeyPair(String, String) used for signing module license data
Return Value
Type:
StringModule license containing given module license data and signature
Exceptions Exception | Condition |
---|
ArgumentNullException | licenseData or privateKey is null |
ArgumentException | privateKey has invalid format of private key encoded in Base64 |
See Also