Click or drag to resize
ModuleLicensesHelperCreateModuleLicense Method
Creates a module license containing given module license data and signature based on given private key.

Namespace: CMS.ModuleLicenses
Assembly: CMS.Modules (in CMS.Modules.dll) Version: 13.0.131
Syntax
C#
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: String
Module license containing given module license data and signature
Exceptions
ExceptionCondition
ArgumentNullExceptionlicenseData or privateKey is null
ArgumentExceptionprivateKey has invalid format of private key encoded in Base64
See Also