10Duke Enterprise C++ Client
|
#include <DefaultAuthzLicensingClient.h>
Default implementation of tenduke::ee::licensing::authzapi::AuthzLicensingClient
.
Creates requests for licensing operations utilizing 10Duke authz-API.
If you want to use this service directly, configure or implement proper tenduke::http::HTTPRequestAuthenticator
to add correct headers to authenticate / authorize the requests.
tenduke::ee::licensing::authzapi::DefaultAuthzLicensingClient::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.
configuration | Licensing configuration |
httpClient | HTTP-client |
httpRequestAuthenticator | service to add authentication / authorization headers to the HTTP request |
jwtParser | JWT parser for parsing the responses |
|
overridevirtual |
Checks out license(s).
Creates a checkout request. Call tenduke::ee::licensing::authzapi::LicenseCheckoutRequest::execute()
on the request.
parameters | the request parameters |
Implements tenduke::ee::licensing::authzapi::AuthzLicensingClient.
|
overridevirtual |
Renews leases of checked out license(s).
Creates a renew request. Call tenduke::ee::licensing::authzapi::LicenseRenewRequest::execute()
on the request.
parameters | the request parameters |
Implements tenduke::ee::licensing::authzapi::AuthzLicensingClient.