10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
OfflineLicenseTokenParser Class Referenceabstract

#include <OfflineLicenseTokenParser.h>

Detailed Description

Service for parsing standalone license tokens.

Inheritance diagram for OfflineLicenseTokenParser:
tenduke::ee::licensing::impl::DefaultOfflineLicenseTokenParser

Public Member Functions

virtual::tenduke::ee::licensing::Lease from (const std::string &licenseToken) const=0
 Parses a single token from given string.
 

Static Public Member Functions

static std::unique_ptr< OfflineLicenseTokenParsercreate (const std::string &validationKeyPEM)
 

Member Function Documentation

◆ from()

virtual::tenduke::ee::licensing::Lease tenduke::ee::licensing::OfflineLicenseTokenParser::from ( const std::string & licenseToken) const
pure virtual

Parses a single token from given string.

Parameters
licenseTokenthe license token
Returns
parsed representation of the license token.
Exceptions
tenduke::ee::licensing::InvalidLicenseTokenif the string is not a license token
tenduke::jwt::JWTParsingExceptionif the license token is not a proper JWT

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