| 
    10Duke Enterprise C++ Client
    
   | 
 
  
Public Member Functions | |
| OAuthTokenRequestFake (const std::shared_ptr< tenduke::oauth::OAuthTokenResponse > &response) | |
| std::unique_ptr< tenduke::oauth::OAuthTokenResponse > | execute () const override | 
| Executes the token request.   | |
  Public Member Functions inherited from tenduke::oauth::OAuthTokenRequest | |
| OAuthTokenRequest (std::unique_ptr< tenduke::http::HTTPCall > httpCall, const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser, const std::shared_ptr< tenduke::time::Clock > &clock, const std::shared_ptr< const tenduke::http::HTTPResponseToException > &throwException) | |
| Constructs new instance.   | |
| OAuthTokenRequest (std::unique_ptr< tenduke::http::HTTPCall > httpCall, const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser, const std::shared_ptr< tenduke::time::Clock > &clock) | |
| Constructs new instance.   | |
Public Attributes | |
| std::shared_ptr< tenduke::oauth::OAuthTokenResponse > | response | 
Additional Inherited Members | |
  Static Public Member Functions inherited from tenduke::oauth::OAuthTokenRequest | |
| static std::unique_ptr< OAuthTokenRequest > | create (const std::string &tokenEndpointUrl, const std::map< std::string, std::string > ¶meters, const std::shared_ptr< const tenduke::http::HTTPClient > &httpClient, const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser, const std::shared_ptr< tenduke::time::Clock > &clock) | 
| Factory method to create the request.  | |
  Protected Member Functions inherited from tenduke::oauth::OAuthTokenRequest | |
| virtual std::unique_ptr< tenduke::json::JSONObject > | parseResponseBody (const std::string &responsePayload) const | 
| Parses the response body to JSON.   | |
| virtual std::unique_ptr< tenduke::oauth::OAuthTokenResponse > | toResponse (const std::string &responsePayload) const | 
| Converts the response body to OAuthTokenResponse.   | |
      
  | 
  inlineoverridevirtual | 
Executes the token request.
| tenduke::oauth::OAuthServerError | when the server responds with an error | 
| tenduke::oauth::OAuthException | when the server response is not what we expected, e.g.
  | 
| tenduke::json::JSONParsingException | when response is not valid JSON | 
| tenduke::net::NetworkingException | (or subclasses of it) when networking error occurred, e.g.
  | 
| tenduke::http::HTTPException | (or subclasses of it) when the server responds with HTTP error status code which does not indicate OAuth-error, e.g. 500 (internal server error) or 404 (not found = wrong endpoint configured). | 
| std::nested_exception | when the there is some nested cause | 
Reimplemented from tenduke::oauth::OAuthTokenRequest.