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

#include <KnownNamesLicenseTokenParser.h>

Detailed Description

A tenduke::ee::licensing::impl::LicenseTokenParser, which verifies the licensed item name from a set of known names.

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

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.
 

Constructor & Destructor Documentation

◆ KnownNamesLicenseTokenParser()

tenduke::ee::licensing::impl::KnownNamesLicenseTokenParser::KnownNamesLicenseTokenParser ( const std::shared_ptr< const tenduke::jwt::JWTParser > &  parseJwt,
const std::set< std::string > &  knownLicensedItemNames 
)

Constructs new instance.

Parameters
parseJwtJWT parser for parsing the license token
knownLicensedItemNamesa set of known licensed item names.

Member Function Documentation

◆ isLicensedItemName()

bool tenduke::ee::licensing::impl::KnownNamesLicenseTokenParser::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: