1#ifndef TENDUKE_EE_LICENSING_IMPL_DEFAULTLEASESTORE_H
2#define TENDUKE_EE_LICENSING_IMPL_DEFAULTLEASESTORE_H
4#include "../LicenseTokens.h"
5#include "crypto/PublicKey.h"
6#include "crypto/KeyFactory.h"
7#include "json/JSONParser.h"
8#include "jwt/JWTParserFactory.h"
29 const std::shared_ptr<const tenduke::jwt::JWTParserFactory> &newJwtParser,
30 const std::shared_ptr<const tenduke::crypto::KeyFactory> &newKey,
31 const std::shared_ptr<const tenduke::json::JSONParser> &parseJson,
32 const std::shared_ptr<const tenduke::crypto::PublicKey> &tokenVerificationKey
37 std::string
serialize(
const std::vector<tenduke::ee::licensing::Lease> &leases)
const override;
38 std::string
serialize(
const std::map<std::string, tenduke::ee::licensing::Lease> &leases)
const override;
39 std::vector<tenduke::ee::licensing::Lease>
deserialize(
const std::string &serializedLeases)
const override;
42 const std::shared_ptr<const tenduke::jwt::JWTParserFactory> newJWTParser;
43 const std::shared_ptr<const tenduke::crypto::KeyFactory> newKey;
44 const std::shared_ptr<const tenduke::json::JSONParser> parseJSON;
45 const std::shared_ptr<const tenduke::crypto::PublicKey> tokenVerificationKey;
DefaultLicenseTokens(const std::shared_ptr< const tenduke::jwt::JWTParserFactory > &newJwtParser, const std::shared_ptr< const tenduke::crypto::KeyFactory > &newKey, const std::shared_ptr< const tenduke::json::JSONParser > &parseJson, const std::shared_ptr< const tenduke::crypto::PublicKey > &tokenVerificationKey)
Constructs new instance.
Definition DefaultLicenseTokens.cpp:128
Service for managing licenses tokens.
Definition LicenseTokens.h:18
std::string serialize(const std::map< std::string, tenduke::ee::licensing::Lease > &leases) const override
Serializes given leases in map to a JSON-string.
std::vector< tenduke::ee::licensing::Lease > deserialize(const std::string &serializedLeases) const override
De-serializes given JSON string into leases.
Definition DefaultLicenseTokens.cpp:20
DefaultLicenseTokens(const std::shared_ptr< const tenduke::jwt::JWTParserFactory > &newJwtParser, const std::shared_ptr< const tenduke::crypto::KeyFactory > &newKey, const std::shared_ptr< const tenduke::json::JSONParser > &parseJson, const std::shared_ptr< const tenduke::crypto::PublicKey > &tokenVerificationKey)
Constructs new instance.
Definition DefaultLicenseTokens.cpp:128
std::string serialize(const std::vector< tenduke::ee::licensing::Lease > &leases) const override
Serializes given leases to a JSON-string.
Implementations of licensing related services.
Definition DefaultLicenseTokens.h:13
Classes, functions and globals related to 10Duke Enterprise licensing.
Definition AuthzLicensingClient.h:13
Classes, functions and globals of 10Duke Enterprise C++ Client.
Definition APIRequest.h:4
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4