10Duke Scale C++ Client
Loading...
Searching...
No Matches
DefaultLicenseTokenToLease.h
1#ifndef TENDUKE_SE_LICENSING_DEFAULTLICENSETOKENTOLEASE_H
2#define TENDUKE_SE_LICENSING_DEFAULTLICENSETOKENTOLEASE_H
3
4#include "./DefaultJWTToLease.h"
5#include "../../api/licenses/LicenseTokenToLease.h"
6#include "jwt/JWTParser.h"
7#include "json/JSONParser.h"
8
9#include <map>
10#include <string>
11#include <vector>
12
13namespace tenduke { namespace se { namespace licensing {
14
20{
21public:
28 const std::shared_ptr<const ::tenduke::json::JSONParser> &parseJSON,
29 const std::shared_ptr<const ::tenduke::jwt::JWTParser> &parseJWT
30 );
31
32 // `tenduke::se::licensing::LicenseTokenToLease` interface
33public:
34 Lease from(
35 const std::string &licenseToken,
36 const std::string &licenseKey,
37 bool metered
38 ) const override;
39
40private:
41 const std::shared_ptr<const ::tenduke::jwt::JWTParser> parseJWT;
42};
43
44}}}
45
46#endif //TENDUKE_SE_LICENSING_DEFAULTLICENSETOKENTOLEASE_H
A tenduke::se::APIRequest, which uses tenduke::oidc::OIDCSession to maintain request authorization.
Definition StatefulAPIRequest.h:27
Default implementation of tenduke::se::licensing::JWTToLease.
Definition DefaultJWTToLease.h:17
Default implementation of tenduke::se::licensing::LicenseTokenToLease.
Definition DefaultLicenseTokenToLease.h:20
Lease from(const std::string &licenseToken, const std::string &licenseKey, bool metered) const override
Converts the token toa lease.
Definition DefaultLicenseTokenToLease.cpp:11
Lease of a license.
Definition Lease.h:17
Converts license token to tenduke::se::licensing::Lease.
Definition LicenseTokenToLease.h:17
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7