10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
KnownNamesLicenseTokenParser.h
1#ifndef TENDUKE_EE_LICENSING_IMPL_KNOWNNAMESLICENSETOKENPARSER_H
2#define TENDUKE_EE_LICENSING_IMPL_KNOWNNAMESLICENSETOKENPARSER_H
3
4#include "../LicenseTokenParser.h"
5#include <set>
6#include <string>
7
8namespace tenduke { namespace ee { namespace licensing { namespace impl {
9
14{
15public:
22 const std::shared_ptr<const tenduke::jwt::JWTParser> &parseJwt,
23 const std::set<std::string> &knownLicensedItemNames
24 );
25
26protected:
28 const std::string &claimName,
29 const std::string &claimValue
30 ) const override;
31
32private:
33 const std::set<std::string> knownLicensedItemNames;
34};
35
36}}}}
37
38#endif //TENDUKE_EE_LICENSING_IMPL_KNOWNNAMESLICENSETOKENPARSER_H
A tenduke::ee::licensing::impl::LicenseTokenParser, which verifies the licensed item name from a set ...
Definition KnownNamesLicenseTokenParser.h:14
bool isLicensedItemName(const std::string &claimName, const std::string &claimValue) const override
Checks if given value is a licensed item name.
Definition KnownNamesLicenseTokenParser.cpp:12
Parses license token into tenduke::ee::licensing::Lease (or into tenduke::ee::licensing::LicensingErr...
Definition LicenseTokenParser.h:59
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4