Engage Engine API
1.251.9091
|
Helper class for serializing and deserializing the LicenseDescriptor JSON. More...
#include <ConfigurationObjects.h>
Inherits AppConfigurationObjects::ConfigurationObjectBase.
Public Member Functions | |
void | clear () |
![]() | |
virtual void | initForDocumenting () |
virtual std::string | toString () |
virtual bool | isDocumenting () const |
Public Attributes | |
std::string | entitlement |
Entitlement key to use for the product. | |
std::string | key |
License Key to be used for the application. | |
std::string | activationCode |
If the key required activation, this is the activation code generated using the entitlement, key and deviceId. | |
std::string | deviceId |
[Read only] Unique device identifier generated by the Engine. | |
int | type |
[Read only] 0 = unknown, 1 = perpetual, 2 = expires | |
time_t | expires |
[Read only] The time that the license key or activation code expires in Unix timestamp - Zulu/UTC. | |
std::string | expiresFormatted |
[Read only] The time that the license key or activation code expires formatted in ISO 8601 format, Zulu/UTC. | |
uint32_t | flags |
Reserved. | |
std::string | cargo |
Reserved for internal use. | |
uint8_t | cargoFlags |
Reserved for internal use. | |
int | status |
The current licensing status. | |
std::string | manufacturerId |
[Read only] Manufacturer ID. | |
![]() | |
nlohmann::json | _attached |
Static Public Attributes | |
static const int | STATUS_OK = 0 |
static const int | ERR_NULL_ENTITLEMENT_KEY = -1 |
static const int | ERR_NULL_LICENSE_KEY = -2 |
static const int | ERR_INVALID_LICENSE_KEY_LEN = -3 |
static const int | ERR_LICENSE_KEY_VERIFICATION_FAILURE = -4 |
static const int | ERR_ACTIVATION_CODE_VERIFICATION_FAILURE = -5 |
static const int | ERR_INVALID_EXPIRATION_DATE = -6 |
static const int | ERR_GENERAL_FAILURE = -7 |
static const int | ERR_NOT_INITIALIZED = -8 |
static const int | ERR_REQUIRES_ACTIVATION = -9 |
static const int | ERR_LICENSE_NOT_SUITED_FOR_ACTIVATION = -10 |
static const uint8_t | LIC_CARGO_FLAG_LIMIT_TO_FEATURES = 0x01 |
Additional Inherited Members | |
![]() | |
bool | _documenting |
Helper class for serializing and deserializing the LicenseDescriptor JSON.
Helper C++ class to serialize and de-serialize LicenseDescriptor JSON
Example:
Definition at line 5238 of file ConfigurationObjects.h.
|
inline |
Definition at line 5324 of file ConfigurationObjects.h.
|
inline |
Definition at line 5329 of file ConfigurationObjects.h.
std::string AppConfigurationObjects::LicenseDescriptor::activationCode |
If the key required activation, this is the activation code generated using the entitlement, key and deviceId.
Definition at line 5289 of file ConfigurationObjects.h.
std::string AppConfigurationObjects::LicenseDescriptor::cargo |
Reserved for internal use.
Definition at line 5310 of file ConfigurationObjects.h.
uint8_t AppConfigurationObjects::LicenseDescriptor::cargoFlags |
Reserved for internal use.
Definition at line 5313 of file ConfigurationObjects.h.
std::string AppConfigurationObjects::LicenseDescriptor::deviceId |
[Read only] Unique device identifier generated by the Engine.
Definition at line 5292 of file ConfigurationObjects.h.
std::string AppConfigurationObjects::LicenseDescriptor::entitlement |
Entitlement key to use for the product.
The entitlement key is a unique key generated by an application developer so that any license keys generated by Rally Tactical's licensing system can only be used on a product with the same matching entitlement key. E.g If you develop two products and you would like to issue license keys independently and would like the Engage Engine and licensing system to handle the entitlement, then you should generate and separate entitlement key for each application.
Definition at line 5278 of file ConfigurationObjects.h.
time_t AppConfigurationObjects::LicenseDescriptor::expires |
[Read only] The time that the license key or activation code expires in Unix timestamp - Zulu/UTC.
Definition at line 5298 of file ConfigurationObjects.h.
std::string AppConfigurationObjects::LicenseDescriptor::expiresFormatted |
[Read only] The time that the license key or activation code expires formatted in ISO 8601 format, Zulu/UTC.
Definition at line 5301 of file ConfigurationObjects.h.
uint32_t AppConfigurationObjects::LicenseDescriptor::flags |
std::string AppConfigurationObjects::LicenseDescriptor::key |
License Key to be used for the application.
This key is generated by the Rally Tactical Licensing systems and requires the entitlement key for creation. This key is then locked to the entitlement key and can never be changed.
Definition at line 5286 of file ConfigurationObjects.h.
std::string AppConfigurationObjects::LicenseDescriptor::manufacturerId |
[Read only] Manufacturer ID.
Definition at line 5322 of file ConfigurationObjects.h.
int AppConfigurationObjects::LicenseDescriptor::status |
The current licensing status.
Definition at line 5319 of file ConfigurationObjects.h.
int AppConfigurationObjects::LicenseDescriptor::type |
[Read only] 0 = unknown, 1 = perpetual, 2 = expires
Definition at line 5295 of file ConfigurationObjects.h.