|
10Duke Enterprise C++ Client
|
#include <DefaultLicenseTokens.h>
Default implementation of 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::Lease > | deserialize (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. | |
| 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.
| newJwtParser | - |
| newKey | - |
| parseJson | - |
| tokenVerificationKey | - |
|
overridevirtual |
De-serializes given JSON string into leases.
| serializedLeases | - |
Implements tenduke::ee::licensing::LicenseTokens.