10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::ee::licensing::impl::KnownNameLicenseTokenParser Class Reference

#include <KnownNameLicenseTokenParser.h>

Detailed Description

A license token parser, which expects the licensed item name to be one given in constructor.

Inheritance diagram for tenduke::ee::licensing::impl::KnownNameLicenseTokenParser:
tenduke::ee::licensing::impl::LicenseTokenParser

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.
 

Constructor & Destructor Documentation

◆ KnownNameLicenseTokenParser()

tenduke::ee::licensing::impl::KnownNameLicenseTokenParser::KnownNameLicenseTokenParser ( const std::shared_ptr< const tenduke::jwt::JWTParser > &  parseJwt,
std::string  licensedItemName 
)

Constructs new instance.

Parameters
parseJwtJWT parser for parsing the license token
licensedItemNameexpected licensed item name

Member Function Documentation

◆ isLicensedItemName()

bool tenduke::ee::licensing::impl::KnownNameLicenseTokenParser::isLicensedItemName ( const std::string &  claimName,
const std::string &  claimValue 
) const
overrideprotectedvirtual

Checks if given value is a licensed item name.

Parameters
claimName-
claimValue-
Returns
-

Reimplemented from tenduke::ee::licensing::impl::LicenseTokenParser.


The documentation for this class was generated from the following files: