|
10Duke Enterprise C++ SDK
|
#include <KnownNamesLicenseTokenParser.h>
A tenduke::ee::licensing::impl::LicenseTokenParser, which verifies the licensed item name from a set of known names.
Public Member Functions | |
| KnownNamesLicenseTokenParser (const std::shared_ptr< const tenduke::jwt::JWTParser > &parseJwt, const std::set< std::string > &knownLicensedItemNames) | |
| Constructs new instance. | |
| Public Member Functions inherited from tenduke::ee::licensing::impl::LicenseTokenParser | |
| LicenseTokenParser (const std::shared_ptr< const tenduke::jwt::JWTParser > &parseJwt) | |
| Constructs new instance. | |
| virtual LeaseOrError | from (const std::string &licenseToken) const |
| Parses the token. | |
Protected Member Functions | |
| bool | isLicensedItemName (const std::string &claimName, const std::string &claimValue) const override |
| Checks if given value is a licensed item name. | |
| tenduke::ee::licensing::impl::KnownNamesLicenseTokenParser::KnownNamesLicenseTokenParser | ( | const std::shared_ptr< const tenduke::jwt::JWTParser > & | parseJwt, |
| const std::set< std::string > & | knownLicensedItemNames ) |
Constructs new instance.
| parseJwt | JWT parser for parsing the license token |
| knownLicensedItemNames | a set of known licensed item names. |
|
overrideprotectedvirtual |
Checks if given value is a licensed item name.
| claimName | - |
| claimValue | - |
Reimplemented from tenduke::ee::licensing::impl::LicenseTokenParser.