10Duke Enterprise C++ SDK
Toggle main menu visibility
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
8
namespace
tenduke
{
namespace
ee
{
namespace
licensing
{
namespace
impl
{
9
13
class
KnownNamesLicenseTokenParser
:
public
tenduke::ee::licensing::impl::LicenseTokenParser
14
{
15
public
:
21
KnownNamesLicenseTokenParser
(
22
const
std::shared_ptr<const tenduke::jwt::JWTParser> &parseJwt,
23
const
std::set<std::string> &knownLicensedItemNames
24
);
25
26
protected
:
27
bool
isLicensedItemName
(
28
const
std::string &claimName,
29
const
std::string &claimValue
30
)
const override
;
31
32
private
:
33
const
std::set<std::string> knownLicensedItemNames;
34
};
35
36
}}}}
37
38
#endif
//TENDUKE_EE_LICENSING_IMPL_KNOWNNAMESLICENSETOKENPARSER_H
KnownNamesLicenseTokenParser::KnownNamesLicenseTokenParser
KnownNamesLicenseTokenParser(const std::shared_ptr< const tenduke::jwt::JWTParser > &parseJwt, const std::set< std::string > &knownLicensedItemNames)
Constructs new instance.
Definition
KnownNamesLicenseTokenParser.cpp:5
tenduke::ee::licensing::impl::KnownNamesLicenseTokenParser::KnownNamesLicenseTokenParser
KnownNamesLicenseTokenParser(const std::shared_ptr< const tenduke::jwt::JWTParser > &parseJwt, const std::set< std::string > &knownLicensedItemNames)
Constructs new instance.
Definition
KnownNamesLicenseTokenParser.cpp:5
tenduke::ee::licensing::impl::KnownNamesLicenseTokenParser::isLicensedItemName
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
tenduke::ee::licensing::impl::LicenseTokenParser
Parses license token into tenduke::ee::licensing::Lease (or into tenduke::ee::licensing::LicensingErr...
Definition
LicenseTokenParser.h:59
tenduke::ee::licensing::impl
Implementations of licensing related services.
Definition
DefaultLicenseTokens.h:13
tenduke::ee::licensing
Classes, functions and globals related to 10Duke Enterprise licensing.
Definition
AuthzLicensingClient.h:13
tenduke::ee
Classes, functions and globals of 10Duke Enterprise C++ Client.
Definition
APIRequest.h:4
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
client
enterprise
api
src
licensing
impl
KnownNamesLicenseTokenParser.h
Generated by
1.17.0