1#ifndef TENDUKE_EE_LICENSING_AUTHZAPI_DEFAULTLICENSINGCLIENT_H
2#define TENDUKE_EE_LICENSING_AUTHZAPI_DEFAULTLICENSINGCLIENT_H
4#include "../AuthzLicensingClient.h"
5#include "../../LicensingConfiguration.h"
7#include "http/HTTPClient.h"
8#include "http/HTTPResponseToException.h"
9#include "jwt/JWTParser.h"
33 const std::shared_ptr<const tenduke::ee::licensing::LicensingConfiguration>& configuration,
34 std::shared_ptr<const tenduke::http::HTTPClient> httpClient,
35 std::shared_ptr<const tenduke::http::HTTPRequestAuthenticator> httpRequestAuthenticator,
36 std::shared_ptr<const tenduke::jwt::JWTParser> jwtParser
43 std::unique_ptr<::tenduke::ee::licensing::authzapi::LicenseRenewRequest>
renew(const ::tenduke::ee::licensing::LicenseRenewParameters ¶meters)
const override;
46 const std::shared_ptr<const tenduke::ee::licensing::LicensingConfiguration> configuration;
47 const std::shared_ptr<const tenduke::http::HTTPClient> httpClient;
48 const std::shared_ptr<const tenduke::http::HTTPRequestAuthenticator> httpRequestAuthenticator;
49 const std::shared_ptr<const tenduke::jwt::JWTParser> jwtParser;
50 const std::shared_ptr<const ::tenduke::http::HTTPResponseToException> throwException;
DefaultAuthzLicensingClient(const std::shared_ptr< const tenduke::ee::licensing::LicensingConfiguration > &configuration, std::shared_ptr< const tenduke::http::HTTPClient > httpClient, std::shared_ptr< const tenduke::http::HTTPRequestAuthenticator > httpRequestAuthenticator, std::shared_ptr< const tenduke::jwt::JWTParser > jwtParser)
Constructs new instance.
Definition DefaultAuthzLicensingClient.cpp:26
Parameters for license-release request.
Definition LicenseReleaseParameters.h:13
Parameters for license checkout request.
Definition LicenseCheckoutParameters.h:18
Low-level client for licensing operations using 10Duke /authz/-API.
Definition AuthzLicensingClient.h:27
DefaultAuthzLicensingClient(const std::shared_ptr< const tenduke::ee::licensing::LicensingConfiguration > &configuration, std::shared_ptr< const tenduke::http::HTTPClient > httpClient, std::shared_ptr< const tenduke::http::HTTPRequestAuthenticator > httpRequestAuthenticator, std::shared_ptr< const tenduke::jwt::JWTParser > jwtParser)
Constructs new instance.
Definition DefaultAuthzLicensingClient.cpp:26
std::unique_ptr< tenduke::ee::licensing::authzapi::LicenseCheckoutRequest > checkout(const tenduke::ee::licensing::LicenseCheckoutParameters ¶meters) const override
Checks out license(s).
Definition DefaultAuthzLicensingClient.cpp:39
std::unique_ptr< tenduke::ee::licensing::authzapi::LicenseReleaseRequest > release(const LicenseReleaseParameters ¶meters) const override
Releases checked out license(s).
Definition DefaultAuthzLicensingClient.cpp:60
std::unique_ptr<::tenduke::ee::licensing::authzapi::LicenseRenewRequest > renew(const ::tenduke::ee::licensing::LicenseRenewParameters ¶meters) const override
Renews leases of checked out license(s).
Definition DefaultAuthzLicensingClient.cpp:73
Low-level client for licensing operations using 10Duke authz-API.
Definition AuthzLicensingClient.h:13
Classes, functions and globals related to 10Duke Enterprise licensing.
Definition AuthzLicensingClient.h:13
Classes, functions and globals of 10Duke Enterprise C++ Client.
Definition APIRequest.h:4
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4