Offline Activation
Last updated
Was this helpful?
Last updated
Was this helpful?
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
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
Parameters
token
(char*): Buffer to store the generated token
tokenLength
(int*): Length of the generated token
data
(const char*): Data to be included in the token
encryptionKey
(const char*): AES key to encrypt the token, the same key that was used during the generation of the activation request, should be used
accountKey
(const char*): Key to sign the token
Return Value
true
If the token is successfully generated
false
If there is an error when generating the token
Example
Parameters
data
(char*): Buffer to store the extracted payload
payloadLength
(int*): Length of the extracted payload
token
(const char*): Activation response token
encryptionKey
(const char*): AES key to decrypt the token
accountKey
(const char*): Key to validate the token
Return Value
true
If the token is successfully parsed
false
If there is an error when parsing the token
Example