10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::ee::licensing::authzapi::AbstractLicenseTokenAuthzApiRequest< T > Class Template Reference

#include <AbstractLicenseTokenAuthzApiRequest.h>

Detailed Description

template<class T>
class tenduke::ee::licensing::authzapi::AbstractLicenseTokenAuthzApiRequest< T >

Base class for licensing requests, which return tokens.

Template Parameters
Ttype of the response
Inheritance diagram for tenduke::ee::licensing::authzapi::AbstractLicenseTokenAuthzApiRequest< T >:
tenduke::ee::licensing::authzapi::AbstractAuthzApiRequest< T > tenduke::ee::licensing::authzapi::LicensingRequest< T >

Public Member Functions

 AbstractLicenseTokenAuthzApiRequest (const std::shared_ptr< const ::tenduke::http::HTTPClient > &httpClient, const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > &httpRequestAuthenticator, const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > &throwException, const std::shared_ptr< const tenduke::ee::licensing::impl::LicenseTokenParser > &licenseTokenParser)
 Constructs new instance.g.
 
- Public Member Functions inherited from tenduke::ee::licensing::authzapi::AbstractAuthzApiRequest< T >
 AbstractAuthzApiRequest (const std::shared_ptr< const ::tenduke::http::HTTPClient > &httpClient, const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > &httpRequestAuthenticator, const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > &throwException)
 Constructs new instance.
 
virtual T execute () override
 Executes the request.
 

Protected Member Functions

T parseResponsePayload (const std::string &payload) const override
 Parses the response payload.
 
- Protected Member Functions inherited from tenduke::ee::licensing::authzapi::AbstractAuthzApiRequest< T >
virtual void buildRequestUrl (::tenduke::net::URLBuilder &url) const =0
 Builds request URL.
 

Constructor & Destructor Documentation

◆ AbstractLicenseTokenAuthzApiRequest()

template<class T >
tenduke::ee::licensing::authzapi::AbstractLicenseTokenAuthzApiRequest< T >::AbstractLicenseTokenAuthzApiRequest ( const std::shared_ptr< const ::tenduke::http::HTTPClient > &  httpClient,
const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > &  httpRequestAuthenticator,
const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > &  throwException,
const std::shared_ptr< const tenduke::ee::licensing::impl::LicenseTokenParser > &  licenseTokenParser 
)
inline

Constructs new instance.g.

Parameters
httpClient-
httpRequestAuthenticator-
throwException-
licenseTokenParser-

Member Function Documentation

◆ parseResponsePayload()

template<class T >
T tenduke::ee::licensing::authzapi::AbstractLicenseTokenAuthzApiRequest< T >::parseResponsePayload ( const std::string &  payload) const
inlineoverrideprotectedvirtual

Parses the response payload.

For token results, the payload is a string, which contains serialized JWTs separated by ampersand.

Parameters
payloadthe payload
Returns
parsed representation of the payload

Implements tenduke::ee::licensing::authzapi::AbstractAuthzApiRequest< T >.


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