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

#include <LicenseTokenParser.h>

Detailed Description

Inheritance diagram for tenduke::ee::licensing::impl::LicenseTokenParser:
tenduke::ee::licensing::impl::KnownNameLicenseTokenParser tenduke::ee::licensing::impl::KnownNamesLicenseTokenParser tenduke::test::fakes::FakeLicenseTokenParser

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.
 

Constructor & Destructor Documentation

◆ LicenseTokenParser()

tenduke::ee::licensing::impl::LicenseTokenParser::LicenseTokenParser ( const std::shared_ptr< const tenduke::jwt::JWTParser > &  parseJwt)
explicit

Constructs new instance.

Parameters
parseJwt-

Member Function Documentation

◆ from()

xdlici::LeaseOrError tenduke::ee::licensing::impl::LicenseTokenParser::from ( const std::string &  licenseToken) const
virtual

Parses the token.

Parameters
licenseToken-
Returns
-

Reimplemented in tenduke::test::fakes::FakeLicenseTokenParser.

◆ isLicensedItemName()

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

Checks if given value is a licensed item name.

Parameters
claimName-
claimValue-
Returns
-

Reimplemented in tenduke::ee::licensing::impl::KnownNameLicenseTokenParser, and tenduke::ee::licensing::impl::KnownNamesLicenseTokenParser.


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