DocumentLicense.activateBuffer Method¶
Module: DocumentLicense
Definition¶
Retrieves a license file buffer using customer credentials and a product reference and returns the license in a data buffer.
@staticmethod
activate_buffer(hardware_code: str, login: str, password: str, product_reference: 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.loginstrin The customer login.passwordstrin The customer password.product_referencestrin The requested product reference.commentarystrin Commentary associated to this license activation, generally the host name.
Returns
bytearrayThe license data.
Exceptions
An error has occurred during Document Library execution.
static Uint8List activateBuffer(String? hardwareCode, String? login, String? password, String? productReference, String? commentary)
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.loginStringin The customer login.passwordStringin The customer password.productReferenceStringin The requested product reference.commentaryStringin Commentary associated to this license activation, generally the host name.
Returns
Uint8ListThe license data.
Exceptions
An error has occurred during Document Library execution.
public static byte[] ActivateBuffer(string hardwareCode, string login, string password, string productReference, string commentary)
Parameters
hardwareCodestringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.loginstringin The customer login.passwordstringin The customer password.productReferencestringin The requested product reference.commentarystringin Commentary associated to this license activation, generally the host name.
Returns
byte[]The license data.
Exceptions
An error has occurred during Document Library execution.
public static byte[] activateBuffer(String hardwareCode, String login, String password, String productReference, String commentary) throws DocumentException
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.loginStringin The customer login.passwordStringin The customer password.productReferenceStringin The requested product reference.commentaryStringin Commentary associated to this license activation, generally the host name.
Returns
byte[]The license data.
Exceptions
An error has occurred during Document Library execution.
public static func activateBuffer(hardwareCode: String, login: String, password: String, productReference: 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.loginStringin The customer login.passwordStringin The customer password.productReferenceStringin The requested product reference.commentaryStringin Commentary associated to this license activation, generally the host name.
Returns
[UInt8]The license data.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentLicense_ActivateBuffer (
const char * hardwareCode,
const char * login,
const char * password,
const char * productReference,
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.loginconst char *in The customer login.passwordconst char *in The customer password.productReferenceconst char *in The requested product reference.commentaryconst char *in Commentary associated to this license activation, generally the host name.licenseFileBufferunsigned char *out The license data.licenseFileBufferSizeint *in Size of the ‘licenseFileBuffer’ buffer. Receives the number of elements in the ‘licenseFileBuffer’ array.
Returns