10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
DefaultLicenseTokens Class Reference

#include <DefaultLicenseTokens.h>

Detailed Description

Default implementation of tenduke::ee::licensing::LicenseTokens.

Inheritance diagram for DefaultLicenseTokens:
tenduke::ee::licensing::LicenseTokens

Public Member Functions

 DefaultLicenseTokens (const std::shared_ptr< const tenduke::jwt::JWTParserFactory > &newJwtParser, const std::shared_ptr< const tenduke::crypto::PublicKeyFactory > &newKey, const std::shared_ptr< const tenduke::json::JSONParser > &parseJson, const std::shared_ptr< const tenduke::crypto::PublicKey > &tokenVerificationKey)
 Constructs new instance.
 
std::string serialize (const std::vector< tenduke::ee::licensing::Lease > &leases) const override
 
std::string serialize (const std::map< std::string, tenduke::ee::licensing::Lease > &leases) const override
 
std::vector< tenduke::ee::licensing::Leasedeserialize (const std::string &serializedLeases) const override
 De-serializes given JSON string into leases.
 
- Public Member Functions inherited from tenduke::ee::licensing::LicenseTokens
virtual std::string serialize (const std::vector< tenduke::ee::licensing::Lease > &leases) const =0
 Serializes given leases to a JSON-string.
 
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.
 

Constructor & Destructor Documentation

◆ DefaultLicenseTokens()

tenduke::ee::licensing::impl::DefaultLicenseTokens::DefaultLicenseTokens ( const std::shared_ptr< const tenduke::jwt::JWTParserFactory > & newJwtParser,
const std::shared_ptr< const tenduke::crypto::PublicKeyFactory > & newKey,
const std::shared_ptr< const tenduke::json::JSONParser > & parseJson,
const std::shared_ptr< const tenduke::crypto::PublicKey > & tokenVerificationKey )

Constructs new instance.

Parameters
newJwtParser-
newKey-
parseJson-
tokenVerificationKey-

Member Function Documentation

◆ deserialize()

std::vector< xdlic::Lease > tenduke::ee::licensing::impl::DefaultLicenseTokens::deserialize ( const std::string & serializedLeases) const
overridevirtual

De-serializes given JSON string into leases.

Parameters
serializedLeases-
Returns
-

Implements tenduke::ee::licensing::LicenseTokens.


The documentation for this class was generated from the following files: