DevicesLicense.activateSerialKeyBuffer Method¶
Module: DevicesLicense
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_code
strin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serial_key
strin The id3 serial key.commentary
strin Commentary associated to this license activation.
Returns
bytearray
The license data buffer.
Exceptions
An error has occurred during Devices Library execution.
static Uint8List activateSerialKeyBuffer(String? hardwareCode, String? serialKey, String? commentary)
Parameters
hardwareCode
Stringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKey
Stringin The id3 serial key.commentary
Stringin Commentary associated to this license activation.
Returns
Uint8List
The license data buffer.
Exceptions
An error has occurred during Devices Library execution.
public static byte[] ActivateSerialKeyBuffer(string hardwareCode, string serialKey, string commentary)
Parameters
hardwareCode
stringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKey
stringin The id3 serial key.commentary
stringin Commentary associated to this license activation.
Returns
byte[]
The license data buffer.
Exceptions
An error has occurred during Devices Library execution.
public static byte[] activateSerialKeyBuffer(String hardwareCode, String serialKey, String commentary) throws DevicesException
Parameters
hardwareCode
Stringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKey
Stringin The id3 serial key.commentary
Stringin Commentary associated to this license activation.
Returns
byte[]
The license data buffer.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesLicense_ActivateSerialKeyBuffer (
const char * hardwareCode,
const char * serialKey,
const char * commentary,
unsigned char * licenseFileBuffer,
int * licenseFileBufferSize)
Parameters
hardwareCode
const char *in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKey
const char *in The id3 serial key.commentary
const char *in Commentary associated to this license activation.licenseFileBuffer
unsigned char *out The license data buffer.licenseFileBufferSize
int *in Size of the ‘licenseFileBuffer’ buffer. Receives the number of elements in the ‘licenseFileBuffer’ array.
Returns