1#ifndef TENDUKE_EE_LICENSING_IMPL_DEFAULTLICENSETOKENPARSER_H
2#define TENDUKE_EE_LICENSING_IMPL_DEFAULTLICENSETOKENPARSER_H
5#include "LicensingError.h"
6#include "json/JSONParser.h"
7#include "jwt/JWTParser.h"
13namespace tenduke {
namespace ee {
namespace licensing {
namespace impl {
65 explicit LicenseTokenParser(
const std::shared_ptr<const tenduke::jwt::JWTParser> &parseJwt);
83 const std::string &claimName,
84 const std::string &claimValue
88 const std::shared_ptr<const tenduke::jwt::JWTParser> parseJWT;
90 static std::set<std::string> wellknownClaimNames;
Describes checked out licensed item.
Definition Lease.h:21
Describes an error returned from the API.
Definition LicensingError.h:18
Describes whether given token is a lease or an error.
Definition LicenseTokenParser.h:22
LeaseOrError(tenduke::ee::licensing::Lease lease, tenduke::ee::licensing::LicensingError error, bool isError)
Constructs new instance.
Definition LicenseTokenParser.h:30
bool isError
If true, this is an error.
Definition LicenseTokenParser.h:50
bool isLease() const
If true, this is a lease.
Definition LicenseTokenParser.h:52
tenduke::ee::licensing::Lease lease
Lease?
Definition LicenseTokenParser.h:45
tenduke::ee::licensing::LicensingError error
Or an error?
Definition LicenseTokenParser.h:47
LeaseOrError()
No-arg constructs new instance.
Definition LicenseTokenParser.h:40
Parses license token into tenduke::ee::licensing::Lease (or into tenduke::ee::licensing::LicensingErr...
Definition LicenseTokenParser.h:59
virtual LeaseOrError from(const std::string &licenseToken) const
Parses the token.
Definition LicenseTokenParser.cpp:68
virtual bool isLicensedItemName(const std::string &claimName, const std::string &claimValue) const
Checks if given value is a licensed item name.
Definition LicenseTokenParser.cpp:211
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4