|
10Duke Enterprise C++ Client
|
#include <KnownNameLicenseTokenParser.h>
A license token parser, which expects the licensed item name to be one given in constructor.
Public Member Functions | |
| KnownNameLicenseTokenParser (const std::shared_ptr< const tenduke::jwt::JWTParser > &parseJwt, std::string licensedItemName) | |
| 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::KnownNameLicenseTokenParser::KnownNameLicenseTokenParser | ( | const std::shared_ptr< const tenduke::jwt::JWTParser > & | parseJwt, |
| std::string | licensedItemName ) |
Constructs new instance.
| parseJwt | JWT parser for parsing the license token |
| licensedItemName | expected licensed item name |
|
overrideprotectedvirtual |
Checks if given value is a licensed item name.
| claimName | - |
| claimValue | - |
Reimplemented from tenduke::ee::licensing::impl::LicenseTokenParser.