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
KeyzyLicenseActivator.h
Go to the documentation of this file.
1#ifndef KEYZY_LICENSE_ACTIVATOR_H
2#define KEYZY_LICENSE_ACTIVATOR_H
3
8
12
13namespace Keyzy
14{
15 class KeyzyLicenseProvider;
16
21 {
22 // Constructors - Destructors
23 public:
30
31 // Activations - Deactivations
32 public:
38 LicenseStatus activateOnline(const std::string& serialNumber);
39
44
53 LicenseStatus activateSemiOnline(const std::string& serialNumber);
54
63
69
77 LicenseStatus activateOffline(const std::string& licenseFilePath);
78
84
103 [[deprecated("Client-only trials have no server-side protection; use LicenseDepositHandler::registerTrial() instead")]]
104 LicenseStatus activateClientTrial(const std::tm& endTime);
105
113 [[deprecated("Client-only trials are deprecated; use server-side trials instead")]]
115
116 // Host id migration
117 public:
137
138 // Upgrade
139 public:
154 LicenseStatus upgradeLicense(const std::string& targetSerial);
155
169 LicenseStatus upgradeLicense(const std::string& sourceSerial,
170 const std::string& targetSerial);
171
172 std::shared_ptr<KeyzyLicenseValidator> getLicenseValidator();
173 std::shared_ptr<LicenseDepositHandler> getLicenseDepositHandler();
174
175 private:
176 std::shared_ptr<KeyzyLicenseProvider> _licenseProvider;
177 std::unique_ptr<KeyzyLicenseManager> _licenseManager;
178 std::shared_ptr<KeyzyLicenseValidator> _licenseValidator;
179 std::shared_ptr<LicenseDepositHandler> _licenseDepositHandler;
180 };
181} // Keyzy
182
183#endif // KEYZY_LICENSE_ACTIVATOR_H
License management: download/store license files, serial numbers, trials, and upgrades.
License validation (online and offline) and access to license fields (info, SKU, dealer,...
LicenseStatus
Definition KeyzyTypes.h:200
HostIdMigrationMode
Definition KeyzyTypes.h:37
Deposit of offline-distributed (dealer) licenses.
LicenseStatus deactivateSemiOnline()
LicenseStatus upgradeLicense(const std::string &targetSerial)
HostIdMigrationResult migrateHostIdV1toV2(HostIdMigrationMode mode)
LicenseStatus deactivateOnline()
LicenseStatus activateClientTrial(const std::tm &endTime)
LicenseStatus activateOffline(const std::string &licenseFilePath)
LicenseStatus activateSemiOnline()
LicenseStatus upgradeLicense(const std::string &sourceSerial, const std::string &targetSerial)
KeyzyLicenseActivator(const ProductData &productData)
LicenseStatus activateOnline(const std::string &serialNumber)
LicenseStatus activateSemiOnline(const std::string &serialNumber)
Definition KeyzyTypes.h:256
Your product's identity and credentials; construct one and pass it to KeyzyLicenseActivator to authen...
Definition KeyzyTypes.h:93