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

#include <JWTToLease.h>

Detailed Description

Converts parsed license token into tenduke::se::licensing::Lease.

Inheritance diagram for tenduke::se::licensing::JWTToLease:
tenduke::se::licensing::DefaultJWTToLease tenduke::test::mocks::JWTToLeaseMock tenduke::se::licensing::DefaultLicenseTokenToLease

Public Member Functions

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.
 

Member Function Documentation

◆ from()

virtual ::tenduke::se::licensing::Lease tenduke::se::licensing::JWTToLease::from ( const ::tenduke::jwt::JWT jwt,
std::string  licenseToken,
std::string  licenseKey,
bool  metered 
) const
pure virtual

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 file: