10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
DefaultLicenseRenewRequest.h
1#ifndef TENDUKE_EE_LICENSING_AUTHZAPI_DEFAULTLICENSERENEWREQUEST_H
2#define TENDUKE_EE_LICENSING_AUTHZAPI_DEFAULTLICENSERENEWREQUEST_H
3
4#include "./AbstractLicenseTokenAuthzApiRequest.h"
5#include "../../LicensingConfiguration.h"
6#include "../../renew/LicenseRenewResponse.h"
7#include "../../renew/LicenseRenewParameters.h"
8
9#include "http/HTTPClient.h"
10#include "http/HTTPRequestAuthenticator.h"
11#include "http/HTTPResponseToException.h"
12#include "jwt/JWTParser.h"
13
14#include <memory>
15#include <string>
16#include <vector>
17
18namespace tenduke { namespace ee { namespace licensing { namespace authzapi {
19
24{
25public:
36 const std::shared_ptr<const ::tenduke::http::HTTPClient> &httpClient,
37 const std::shared_ptr<const ::tenduke::http::HTTPRequestAuthenticator> &httpRequestAuthenticator,
38 const std::shared_ptr<const ::tenduke::http::HTTPResponseToException> &throwException,
39 const std::shared_ptr<const ::tenduke::ee::licensing::impl::LicenseTokenParser> &licenseTokenParser,
40 const std::shared_ptr<const ::tenduke::ee::licensing::LicensingConfiguration> &configuration,
42 );
43
44protected:
45 void buildRequestUrl(::tenduke::net::URLBuilder &url) const override;
46
47private:
48 const std::shared_ptr<const ::tenduke::ee::licensing::LicensingConfiguration> configuration;
49 const ::tenduke::ee::licensing::LicenseRenewParameters parameters;
50};
51
52}}}}
53
54#endif //TENDUKE_EE_LICENSING_AUTHZAPI_DEFAULTLICENSERENEWREQUEST_H
Parameters for license renew request.
Definition LicenseRenewParameters.h:18
Base class for licensing requests, which return tokens.
Definition AbstractLicenseTokenAuthzApiRequest.h:25
Default implementation of tenduke::ee::licensing::authzapi::LicenseRenewRequest.
Definition DefaultLicenseRenewRequest.h:24
void buildRequestUrl(::tenduke::net::URLBuilder &url) const override
Builds request URL.
Definition DefaultLicenseRenewRequest.cpp:18
Very simple URL-builder.
Definition URLBuilder.h:19
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4