10Duke Enterprise C++ Client
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
13{
14public:
15 explicit DefaultOfflineLicenseTokenParser(const std::shared_ptr<const ::tenduke::jwt::JWTParser> &jwtParser);
16
17 // OfflineLicenseTokenParser implementation
18public:
19 ::tenduke::ee::licensing::Lease from(const std::string &licenseToken) const override;
20
21protected:
22 virtual std::unique_ptr<::tenduke::ee::licensing::impl::LicenseTokenParser> createLicenseTokenParser() const;
23
24private:
25 const std::shared_ptr<const ::tenduke::jwt::JWTParser> jwtParser;
26};
27
28}}}}
29
30#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
Definition DefaultOfflineLicenseTokenParser.h:13
::tenduke::ee::licensing::Lease from(const std::string &licenseToken) const override
Parses a single token from given string.
Definition DefaultOfflineLicenseTokenParser.cpp:17
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4