10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::ee::licensing::authzapi::DefaultAuthzLicensingClient Class Reference

#include <DefaultAuthzLicensingClient.h>

Detailed Description

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.

Inheritance diagram for tenduke::ee::licensing::authzapi::DefaultAuthzLicensingClient:
tenduke::ee::licensing::authzapi::AuthzLicensingClient

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::LicenseCheckoutRequestcheckout (const tenduke::ee::licensing::LicenseCheckoutParameters &parameters) const override
 Checks out license(s).
 
std::unique_ptr< tenduke::ee::licensing::authzapi::LicenseReleaseRequestrelease (const LicenseReleaseParameters &parameters) const override
 Releases checked out license(s).
 
std::unique_ptr<::tenduke::ee::licensing::authzapi::LicenseRenewRequestrenew (const ::tenduke::ee::licensing::LicenseRenewParameters &parameters) const override
 Renews leases of checked out license(s).
 

Constructor & Destructor Documentation

◆ DefaultAuthzLicensingClient()

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.

Parameters
configurationLicensing configuration
httpClientHTTP-client
httpRequestAuthenticatorservice to add authentication / authorization headers to the HTTP request
jwtParserJWT parser for parsing the responses

Member Function Documentation

◆ checkout()

std::unique_ptr<::LicenseCheckoutRequest > tenduke::ee::licensing::authzapi::DefaultAuthzLicensingClient::checkout ( const tenduke::ee::licensing::LicenseCheckoutParameters parameters) const
overridevirtual

Checks out license(s).

Creates a checkout request. Call tenduke::ee::licensing::authzapi::LicenseCheckoutRequest::execute() on the request.

Parameters
parametersthe request parameters
Returns
the request

Implements tenduke::ee::licensing::authzapi::AuthzLicensingClient.

◆ release()

std::unique_ptr<::LicenseReleaseRequest > tenduke::ee::licensing::authzapi::DefaultAuthzLicensingClient::release ( const LicenseReleaseParameters parameters) const
overridevirtual

Releases checked out license(s).

Creates a release request. Call tenduke::ee::licensing::authzapi::LicenseReleaseRequest::execute() on the request.

Parameters
parametersthe request parameters
Returns
the request

Implements tenduke::ee::licensing::authzapi::AuthzLicensingClient.

◆ renew()

std::unique_ptr<::LicenseRenewRequest > tenduke::ee::licensing::authzapi::DefaultAuthzLicensingClient::renew ( const ::tenduke::ee::licensing::LicenseRenewParameters parameters) const
overridevirtual

Renews leases of checked out license(s).

Creates a renew request. Call tenduke::ee::licensing::authzapi::LicenseRenewRequest::execute() on the request.

Parameters
parametersthe request parameters
Returns
the request

Implements tenduke::ee::licensing::authzapi::AuthzLicensingClient.


The documentation for this class was generated from the following files: