Offline Activation
Offline activation ensures that software products can be activated and remain functional without an online connection. This approach is crucial for organizations needing to manage licenses in the environment.
For more details, please refer to the Offline Activation Tokens Library Documentation.
Important - Source of Keys and Tokens
Encryption Key: The AES encryption key is generated by the application and stored in persistent storage. The same key should be used during the generation of the activation request and parsing of the activation response
Token: Comes from the server/End User Portal
Account Key: The tenant key from the account settings
Token Functions Documentation
Generate an activation request token from the provided data
Parameters
token
(char*): Buffer to store the generated tokentokenLength
(int*): Length of the generated tokendata
(const char*): Data to be included in the tokenencryptionKey
(const char*): AES key to encrypt the token, the same key that was used during the generation of the activation request, should be usedaccountKey
(const char*): Key to sign the token
Return Value
true
If the token is successfully generatedfalse
If there is an error when generating the token
Example
Parse an activation response token to extract its payload data
Parameters
data
(char*): Buffer to store the extracted payloadpayloadLength
(int*): Length of the extracted payloadtoken
(const char*): Activation response tokenencryptionKey
(const char*): AES key to decrypt the tokenaccountKey
(const char*): Key to validate the token
Return Value
true
If the token is successfully parsedfalse
If there is an error when parsing the token
Example
Last updated