|
10Duke Enterprise C++ SDK
|
#include <LicenseTokenParser.h>
Parses license token into tenduke::ee::licensing::Lease (or into tenduke::ee::licensing::LicensingError).
Public Member Functions | |
| 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 | |
| virtual bool | isLicensedItemName (const std::string &claimName, const std::string &claimValue) const |
| Checks if given value is a licensed item name. | |
|
explicit |
Constructs new instance.
| parseJwt | - |
|
virtual |
Parses the token.
| licenseToken | - |
|
protectedvirtual |
Checks if given value is a licensed item name.
| claimName | - |
| claimValue | - |
Reimplemented in KnownNamesLicenseTokenParser, tenduke::ee::licensing::impl::KnownNameLicenseTokenParser, and tenduke::ee::licensing::impl::KnownNamesLicenseTokenParser.