KEYZY C++ Client Library 1.9.0
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

Deposits offline-distributed (dealer) licenses. 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

Deposits offline-distributed (dealer) licenses.

Constructor & Destructor Documentation

◆ LicenseDepositHandler()

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

Create an instance of LicenseDepositHandler

Parameters
KeyzyLicenseProvider

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 license. If you are unsure of what an offline (dealer) license means, please check for more information on the keyzy.io domain.

Parameters
serialnumber The 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.