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

#include <DefaultJWTToLease.h>

Detailed Description

Default implementation of tenduke::se::licensing::JWTToLease.

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

Public Member Functions

 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.
 

Protected Member Functions

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

◆ DefaultJWTToLease()

tenduke::se::licensing::DefaultJWTToLease::DefaultJWTToLease ( const std::shared_ptr< const ::tenduke::json::JSONParser > &  jsonParser)
explicit

Constructs new instance.

Parameters
jsonParser-

Member Function Documentation

◆ from()

Lease tenduke::se::licensing::DefaultJWTToLease::from ( const tenduke::jwt::JWT jwt,
std::string  licenseToken,
std::string  licenseKey,
bool  metered 
) const
override

Converts the parsed token to lease.

Parameters
jwtthe parsed token as JWT
licenseTokenthe serialized form of the license token
licenseKeylicense key used in the operation. Pass empty string, if not used.
meteredflag to indicate if the operation was "metered use"
Returns
-

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