10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::se::licensing::DefaultLicenseTokenToLease Class Reference

#include <DefaultLicenseTokenToLease.h>

Detailed Description

Inheritance diagram for tenduke::se::licensing::DefaultLicenseTokenToLease:
tenduke::se::licensing::DefaultJWTToLease tenduke::se::licensing::LicenseTokenToLease tenduke::se::licensing::JWTToLease

Public Member Functions

 DefaultLicenseTokenToLease (const std::shared_ptr< const ::tenduke::json::JSONParser > &parseJSON, const std::shared_ptr< const ::tenduke::jwt::JWTParser > &parseJWT)
 Constructs new instance.
 
Lease from (const std::string &licenseToken, const std::string &licenseKey, bool metered) const override
 Converts the token toa lease.
 
- Public Member Functions inherited from tenduke::se::licensing::DefaultJWTToLease
 DefaultJWTToLease (const std::shared_ptr< const ::tenduke::json::JSONParser > &jsonParser)
 Constructs new instance.
 
::tenduke::se::licensing::Lease from (const tenduke::jwt::JWT &jwt, std::string licenseToken, std::string licenseKey, bool metered) const override
 Converts the parsed token to lease.
 
- Public Member Functions inherited from tenduke::se::licensing::JWTToLease
virtual ::tenduke::se::licensing::Lease from (const ::tenduke::jwt::JWT &jwt, std::string licenseToken, std::string licenseKey, bool metered) const =0
 Converts the parsed token to lease.
 

Additional Inherited Members

- Protected Member Functions inherited from tenduke::se::licensing::DefaultJWTToLease
std::vector< std::string > extractFeatures (const ::tenduke::jwt::JWT &jwt) const
 Extracts features from the JWT.
 
std::map< std::string, std::string > extractClientClaims (const ::tenduke::jwt::JWT &jwt) const
 Extracts client-claims from the JWT.
 

Constructor & Destructor Documentation

◆ DefaultLicenseTokenToLease()

tenduke::se::licensing::DefaultLicenseTokenToLease::DefaultLicenseTokenToLease ( const std::shared_ptr< const ::tenduke::json::JSONParser > &  parseJSON,
const std::shared_ptr< const ::tenduke::jwt::JWTParser > &  parseJWT 
)

Constructs new instance.

Parameters
parseJSON-
parseJWT-

Member Function Documentation

◆ from()

Lease tenduke::se::licensing::DefaultLicenseTokenToLease::from ( const std::string &  licenseToken,
const std::string &  licenseKey,
bool  metered 
) const
overridevirtual

Converts the token toa lease.

Parameters
licenseTokenthe license token
licenseKeylicense key used in the operation. Pass empty string, if not used.
meteredflag to indicate if the operation was "metered use"
Returns
-

Implements tenduke::se::licensing::LicenseTokenToLease.


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