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.
Public Member Functions | |
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. | |
std::unique_ptr< tenduke::ee::licensing::authzapi::LicenseCheckoutRequest > | checkout (const tenduke::ee::licensing::LicenseCheckoutParameters ¶meters) const override |
Checks out license(s). | |
std::unique_ptr< tenduke::ee::licensing::authzapi::LicenseReleaseRequest > | release (const LicenseReleaseParameters ¶meters) const override |
Releases checked out license(s). | |
std::unique_ptr<::tenduke::ee::licensing::authzapi::LicenseRenewRequest > | renew (const ::tenduke::ee::licensing::LicenseRenewParameters ¶meters) const override |
Renews leases of checked out license(s). | |
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 |
Releases checked out license(s).
Creates a release request. Call tenduke::ee::licensing::authzapi::LicenseReleaseRequest::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.