10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
DefaultOfflineLicenseTokenParser.h
1#ifndef TENDUKE_EE_LICENSING_IMPL_DEFAULTOFFLINELICENSETOKENPARSER_H
2#define TENDUKE_EE_LICENSING_IMPL_DEFAULTOFFLINELICENSETOKENPARSER_H
3
4#include "../LicenseTokenParser.h"
5#include "../OfflineLicenseTokenParser.h"
6#include "jwt/JWTParser.h"
7
8#include <memory>
9
10namespace tenduke { namespace ee { namespace licensing { namespace impl {
11
12class DefaultOfflineLicenseTokenParser : public ::tenduke::ee::licensing::OfflineLicenseTokenParser
13{
14public:
15 explicit DefaultOfflineLicenseTokenParser(const std::shared_ptr<const ::tenduke::jwt::JWTParser> &jwtParser);
16
17 // OfflineLicenseTokenParser implementation
18public:
20 const std::string &licenseToken,
21 const std::string &licensedItemName
22 ) const override;
23 ::tenduke::ee::licensing::Lease from(const std::string &licenseToken) const override;
24
25private:
26 const std::shared_ptr<const ::tenduke::jwt::JWTParser> jwtParser;
27};
28
29}}}}
30
31#endif //TENDUKE_EE_LICENSING_IMPL_DEFAULTOFFLINELICENSETOKENPARSER_H
Describes checked out licensed item.
Definition Lease.h:21
Service for parsing standalone license tokens.
Definition OfflineLicenseTokenParser.h:14
::tenduke::ee::licensing::Lease from(const std::string &licenseToken, const std::string &licensedItemName) const override
Parses a single token of the given licensed item from given string.
Definition DefaultOfflineLicenseTokenParser.cpp:31
Implementations of licensing related services.
Definition DefaultLicenseTokens.h:21
Classes, functions and globals related to 10Duke Enterprise licensing.
Definition AuthzLicensingClient.h:13
Classes, functions and globals of 10Duke Enterprise C++ Client.
Definition APIRequest.h:4
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4