10Duke Scale C++ Client
Loading...
Searching...
No Matches
JWTToLease.h
1#ifndef TENDUKE_SE_LICENSING_JWTTOLEASE_H
2#define TENDUKE_SE_LICENSING_JWTTOLEASE_H
3
4#include "../Lease.h"
5#include "jwt/JWT.h"
6
7namespace tenduke { namespace se { namespace licensing {
8
13{
14public:
15 virtual ~JWTToLease() = default;
16
25 virtual ::tenduke::se::licensing::Lease from(
26 const ::tenduke::jwt::JWT &jwt,
27 std::string licenseToken,
28 std::string licenseKey,
29 bool metered
30 ) const = 0;
31};
32
33}}}
34
35#endif //TENDUKE_SE_LICENSING_JWTTOLEASE_H
Converts parsed license token into tenduke::se::licensing::Lease.
Definition JWTToLease.h:13
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.
Support for JSON Web Tokens.
Definition DefaultJWTParser.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7