![]() |
KEYZY C++ Client Library 1.10.2
To develop software that is compiled with a C++ compiler and utilizes the KEYZY service (www.keyzy.io)
|
Registers trial and offline-distributed (dealer) licenses on the KEYZY service. More...
#include <LicenseDepositHandler.h>
Public Member Functions | |
| LicenseDepositHandler (std::shared_ptr< KeyzyLicenseProvider > licenseProvider) | |
| LicenseStatus | registerTrial (LicenseInfo &licenseInfo, const std::string &skuNumber, const std::string &name=std::string(), const std::string &email=std::string()) |
| LicenseStatus | registerOfflineDistributedLicense (const std::string &serialNumber, const std::string &name=std::string(), const std::string &email=std::string()) |
Registers trial and offline-distributed (dealer) licenses on the KEYZY service.
| Keyzy::LicenseDepositHandler::LicenseDepositHandler | ( | std::shared_ptr< KeyzyLicenseProvider > | licenseProvider | ) |
Create an instance of LicenseDepositHandler
| licenseProvider | Internal. Get the handler from KeyzyLicenseActivator::getLicenseDepositHandler() instead of constructing it. |
| LicenseStatus Keyzy::LicenseDepositHandler::registerTrial | ( | LicenseInfo & | licenseInfo, |
| const std::string & | skuNumber, | ||
| const std::string & | name = std::string(), | ||
| const std::string & | email = std::string() ) |
registerTrial registers a trial license on the KEYZY service and brings the information to the device.
| licenseInfo | It's filled by the function with the trial license information of a license. |
| skuNumber | A trial license is deposited for this SKU Number. |
| name | Optional. If it's filled, the trial license is deposited with the name parameter. |
| Required (since 2026-04-20 server hardening). The trial license is deposited with the email parameter. If empty, the call is rejected client-side with LicenseStatus::EMAIL_VALIDATION. |
| LicenseStatus Keyzy::LicenseDepositHandler::registerOfflineDistributedLicense | ( | const std::string & | serialNumber, |
| const std::string & | name = std::string(), | ||
| const std::string & | email = std::string() ) |
registerOfflineDistributedLicense updates the name and the email information of an offline-distributed (dealer) license.
| serialNumber | The serial number that the information will be set. |
| name | Optional. If it's filled, the offline-distributed license is deposited with the name parameter. |
| Required (since 2026-04-20 server hardening). The offline-distributed license is deposited with the email parameter. If empty, the call is rejected client-side with LicenseStatus::EMAIL_VALIDATION. |