35 ProductData(std::string appId, std::string apiKey, std::string productCode,
36 std::string cryptionKey,
bool useHostIdInOfflineActivation =
true)
LicenseType
Definition KeyzyTypes.h:164
LicenseStatus
Definition KeyzyTypes.h:110
@ REACHED_MAX_NUMBER_OF_HOST
The license has reached its maximum number of activated devices (hosts). (Server-side).
Definition KeyzyTypes.h:121
@ SUBSCRIPTION_LICENSE_NOT_STARTED
The subscription license has not started yet (it has a future start date). (Server-side).
Definition KeyzyTypes.h:125
@ ANOTHER_TRIAL_LICENSE_ALREADY_ACTIVATED
A trial has already been activated on this device; a second trial is blocked. (Server-side).
Definition KeyzyTypes.h:138
@ SKU_NUMBER_VALIDATION
The sku_number parameter failed validation (HTTP 422). (Server-side).
Definition KeyzyTypes.h:139
@ UPGRADE_LICENSE_DOES_NOT_EXIST
During an upgrade, the target (upgrade) license serial does not exist on the KEYZY servers....
Definition KeyzyTypes.h:136
@ NO_ACTIVE_SUBSCRIPTION
The account holder has a subscription problem on the KEYZY side (i.e. your own KEYZY plan is inactive...
Definition KeyzyTypes.h:134
@ NETWORK_HOSTS_TAMPERED
The OS resolver returned a private/loopback IP for api.keyzy.io — a strong sign of hosts-file / DNS m...
Definition KeyzyTypes.h:157
@ SERIAL_INVALID
The serial number is invalid or not registered. (Server-side).
Definition KeyzyTypes.h:115
@ EXPIRED
A locally-stored trial has expired. Returned by validateTrialLicense() in KeyzyLicenseValidator....
Definition KeyzyTypes.h:112
@ PRODUCT_NOT_EXIST_FOR_SKU
The product exists but is not part of the SKU linked to this license. (Server-side).
Definition KeyzyTypes.h:122
@ SERIAL_VALIDATION
The serial parameter failed validation (HTTP 422 on register). (Server-side).
Definition KeyzyTypes.h:146
@ TOO_MANY_REQUESTS
The client sent too many requests in a short time and was rate-limited (HTTP 429)....
Definition KeyzyTypes.h:133
@ NETWORK_REFUSED
TCP connection refused — typically a firewall blocking outbound HTTPS. Ask the user to check their fi...
Definition KeyzyTypes.h:153
@ CANNOT_KEEP_LICENSE_FILE
The SDK could not save the license file to the device (write failed — often a wrong or unwritable tar...
Definition KeyzyTypes.h:129
@ CODE_VALIDATION
The code parameter failed validation (HTTP 422 on register-trial). (Server-side).
Definition KeyzyTypes.h:147
@ TRIAL_LICENSE_NOT_STARTED
The server-side trial license has not started yet (future start date). (Server-side).
Definition KeyzyTypes.h:127
@ NETWORK_TIMEOUT
Connection timed out. With no HTTP 407, this is usually a firewall blocking outbound HTTPS or a proxy...
Definition KeyzyTypes.h:154
@ NO_FREE_LICENSES
No unassigned (free) licenses remain in this SKU's pool to register. Returned by registration flows (...
Definition KeyzyTypes.h:143
@ ACTIVATION_DEACTIVATED
This device's activation was deactivated (revoked) on the server. (Server-side).
Definition KeyzyTypes.h:123
@ ACTIVATION_DELETED
The activation was successfully removed from the KEYZY servers. A success status, returned by the dea...
Definition KeyzyTypes.h:130
@ PRODUCT_NOT_ACTIVE
The product exists but is not active. (Server-side).
Definition KeyzyTypes.h:118
@ NAME_VALIDATION
The name parameter failed validation (HTTP 422). (Server-side).
Definition KeyzyTypes.h:141
@ SKU_NOT_ACTIVE
The SKU exists but is not active. (Server-side).
Definition KeyzyTypes.h:120
@ CANNOT_KEEP_SERIAL
The SDK could not save the serial number to the device (write failed). Happens locally,...
Definition KeyzyTypes.h:128
@ PRODUCT_NOT_EXIST
The product code does not exist. (Server-side).
Definition KeyzyTypes.h:116
@ NETWORK_PROXY_REQUIRED
HTTP 407: the network requires an authenticated proxy. Ask the user to contact their IT department to...
Definition KeyzyTypes.h:156
@ SKU_NOT_EXIST
The SKU does not exist. (Server-side).
Definition KeyzyTypes.h:119
@ NAME_OR_EMAIL_VALIDATION
Definition KeyzyTypes.h:144
@ NETWORK_DNS_FAILED
DNS resolution failed (DoH and OS resolver both failed). Likely no internet, or DNS blocked....
Definition KeyzyTypes.h:152
@ EMAIL_VALIDATION
The email parameter failed validation. Rejected server-side (HTTP 422) or client-side (empty email in...
Definition KeyzyTypes.h:142
@ UPGRADE_LICENSE_DOES_NOT_MATCH
The target license is not a valid upgrade path for the current license. (Server-side).
Definition KeyzyTypes.h:137
@ PRODUCT_CODE_VALIDATION
The product_code parameter failed validation (HTTP 422). (Server-side).
Definition KeyzyTypes.h:140
@ CURRENT_LICENSE_DOES_NOT_EXIST
During an upgrade, the source (current) license serial does not exist on the KEYZY servers....
Definition KeyzyTypes.h:135
@ CLIENT_SERIAL_DOES_NOT_EXIST
No serial number is stored on the device. (Client-side).
Definition KeyzyTypes.h:131
@ TRIAL_LICENSE_EXPIRED
The server-side trial license has expired. (Distinct from EXPIRED, which is a local trial check....
Definition KeyzyTypes.h:126
@ CONNECTION_ERROR
Network or firewall error (umbrella). Returned when the connection fails at the network layer and no ...
Definition KeyzyTypes.h:132
@ VALID
The license is valid and active. The only success status for validation/activation calls (with ACTIVA...
Definition KeyzyTypes.h:111
@ INVALID
The license is invalid or could not be verified — generic failure when no more specific status applie...
Definition KeyzyTypes.h:113
@ LICENSE_NOT_EXIST_NOT_ASSIGNED_DEALER_ALREADY_DEPOSITED
Register-offline-distributed-license flow: the license does not exist, is not assigned to a dealer,...
Definition KeyzyTypes.h:145
@ PRODUCT_NOT_EXIST_FOR_USER
The product code does not exist. (Server-side) (Intentionally identical to PRODUCT_NOT_EXIST — see no...
Definition KeyzyTypes.h:117
@ NOT_AUTHORIZED
The appId / apiKey pair is wrong or not authorized. (Server-side).
Definition KeyzyTypes.h:114
@ NETWORK_TLS_FAILED
TLS handshake failed — corporate SSL inspection, MITM, or a wrong system clock. Ask the user to check...
Definition KeyzyTypes.h:155
@ SUBSCRIPTION_LICENSE_EXPIRED
The subscription license has expired (its end date has passed). (Server-side).
Definition KeyzyTypes.h:124
License details filled in by the SDK: SKU, product code, licensee name/email, type,...
Definition KeyzyTypes.h:92
std::string _skuNumber
Definition KeyzyTypes.h:93
std::string _versionCode
Definition KeyzyTypes.h:97
std::string _licenseeEmail
Definition KeyzyTypes.h:96
std::string _info
Definition KeyzyTypes.h:101
std::string _licenseType
Definition KeyzyTypes.h:98
std::string _productCode
Definition KeyzyTypes.h:94
std::int64_t _endTime
Definition KeyzyTypes.h:100
std::string _serialNumber
Definition KeyzyTypes.h:102
std::string _licenseeName
Definition KeyzyTypes.h:95
std::int64_t _startTime
Definition KeyzyTypes.h:99
std::string _apiKey
Definition KeyzyTypes.h:44
std::string _appId
Definition KeyzyTypes.h:43
std::string _productCode
Definition KeyzyTypes.h:45
std::string _cryptionKey
Definition KeyzyTypes.h:46
bool _useHostIdInOffilneActivation
Definition KeyzyTypes.h:47