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)
Loading...
Searching...
No Matches
Keyzy::LicenseDepositHandler Class Reference

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())

Detailed Description

Registers trial and offline-distributed (dealer) licenses on the KEYZY service.

Constructor & Destructor Documentation

◆ LicenseDepositHandler()

Keyzy::LicenseDepositHandler::LicenseDepositHandler ( std::shared_ptr< KeyzyLicenseProvider > licenseProvider)

Create an instance of LicenseDepositHandler

Parameters
licenseProviderInternal. Get the handler from KeyzyLicenseActivator::getLicenseDepositHandler() instead of constructing it.

Member Function Documentation

◆ registerTrial()

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.

Parameters
licenseInfoIt's filled by the function with the trial license information of a license.
skuNumberA trial license is deposited for this SKU Number.
nameOptional.
If it's filled, the trial license is deposited with the name parameter.
emailRequired (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.

◆ registerOfflineDistributedLicense()

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.

Parameters
serialNumberThe serial number that the information will be set.
nameOptional.
If it's filled, the offline-distributed license is deposited with the name parameter.
emailRequired (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.