10Duke Scale C++ Client
|
#include <DefaultLicenseTokenToLease.h>
Default implementation of tenduke::se::licensing::LicenseTokenToLease
.
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. | |
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.
parseJSON | - |
parseJWT | - |
|
overridevirtual |
Converts the token toa lease.
licenseToken | the license token |
licenseKey | license key used in the operation. Pass empty string, if not used. |
metered | flag to indicate if the operation was "metered use" |
Implements tenduke::se::licensing::LicenseTokenToLease.