10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
LicenseTokens.h
1
#ifndef TENDUKE_EE_LICENSING_LICENSETOKENUTILS_H
2
#define TENDUKE_EE_LICENSING_LICENSETOKENUTILS_H
3
4
#include "./Lease.h"
5
#include "crypto/PublicKey.h"
6
7
#include <map>
8
#include <string>
9
#include <vector>
10
11
12
namespace
tenduke
{
namespace
ee
{
namespace
licensing
{
13
17
class
LicenseTokens
18
{
19
public
:
20
virtual
~LicenseTokens
() =
default
;
21
39
virtual
std::string
serialize
(
const
std::vector<tenduke::ee::licensing::Lease> &leases)
const
= 0;
40
46
virtual
std::string
serialize
(
const
std::map<std::string, tenduke::ee::licensing::Lease> &leases)
const
= 0;
47
53
virtual
std::vector<tenduke::ee::licensing::Lease>
deserialize
(
const
std::string &serializedLeases)
const
= 0;
54
};
55
56
57
}}}
58
59
#endif
//TENDUKE_EE_LICENSING_LICENSETOKENUTILS_H
tenduke::ee::licensing::LicenseTokens
Service for managing licenses tokens.
Definition
LicenseTokens.h:18
tenduke::ee::licensing::LicenseTokens::serialize
virtual std::string serialize(const std::vector< tenduke::ee::licensing::Lease > &leases) const =0
Serializes given leases to a JSON-string.
tenduke::ee::licensing::LicenseTokens::serialize
virtual std::string serialize(const std::map< std::string, tenduke::ee::licensing::Lease > &leases) const =0
Serializes given leases in map to a JSON-string.
tenduke::ee::licensing::LicenseTokens::deserialize
virtual std::vector< tenduke::ee::licensing::Lease > deserialize(const std::string &serializedLeases) const =0
De-serializes given JSON string into leases.
tenduke::ee::licensing
Classes, functions and globals related to 10Duke Enterprise licensing.
Definition
AuthzLicensingClient.h:13
tenduke::ee
Classes, functions and globals of 10Duke Enterprise C++ Client.
Definition
APIRequest.h:4
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
client
enterprise
api
src
licensing
LicenseTokens.h
Generated by
1.17.0