DocumentLicense.activateSerialKeyBuffer Method¶
Module: DocumentLicense
Definition¶
Activates a license using a serial key and returns the license in a data buffer.
@staticmethod
activate_serial_key_buffer(hardware_code: str, serial_key: str, commentary: str) -> bytearray
Parameters
hardware_codestrin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serial_keystrin The id3 serial key.commentarystrin Commentary associated to this license activation.
Returns
bytearrayThe license data buffer.
Exceptions
An error has occurred during Document Library execution.
static Uint8List activateSerialKeyBuffer(String? hardwareCode, String? serialKey, String? commentary)
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKeyStringin The id3 serial key.commentaryStringin Commentary associated to this license activation.
Returns
Uint8ListThe license data buffer.
Exceptions
An error has occurred during Document Library execution.
public static byte[] ActivateSerialKeyBuffer(string hardwareCode, string serialKey, string commentary)
Parameters
hardwareCodestringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKeystringin The id3 serial key.commentarystringin Commentary associated to this license activation.
Returns
byte[]The license data buffer.
Exceptions
An error has occurred during Document Library execution.
public static byte[] activateSerialKeyBuffer(String hardwareCode, String serialKey, String commentary) throws DocumentException
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKeyStringin The id3 serial key.commentaryStringin Commentary associated to this license activation.
Returns
byte[]The license data buffer.
Exceptions
An error has occurred during Document Library execution.
public static func activateSerialKeyBuffer(hardwareCode: String, serialKey: String, commentary: String) throws -> [UInt8]
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKeyStringin The id3 serial key.commentaryStringin Commentary associated to this license activation.
Returns
[UInt8]The license data buffer.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentLicense_ActivateSerialKeyBuffer (
const char * hardwareCode,
const char * serialKey,
const char * commentary,
unsigned char * licenseFileBuffer,
int * licenseFileBufferSize)
Parameters
hardwareCodeconst char *in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKeyconst char *in The id3 serial key.commentaryconst char *in Commentary associated to this license activation.licenseFileBufferunsigned char *out The license data buffer.licenseFileBufferSizeint *in Size of the ‘licenseFileBuffer’ buffer. Receives the number of elements in the ‘licenseFileBuffer’ array.
Returns