|
olp-cpp-sdk
1.23.1
|
#include <TokenProvider.h>
Public Member Functions | |
| TokenProviderImpl (Settings settings, std::chrono::seconds minimum_validity) | |
Creates the TokenProviderImpl instance. More... | |
| client::OauthTokenResponse | operator() (client::CancellationContext &context) const |
| ErrorResponse | GetErrorResponse () const |
Allows the olp::client::ApiError object associated with the last request to be accessed if the token request is unsuccessful. More... | |
| int | GetHttpStatusCode () const |
| Gets the HTTP status code of the last request. More... | |
| TokenResponse | GetResponse (client::CancellationContext &context) const |
| bool | IsTokenResponseOK () const |
An implementation of TokenProvider.
| olp::authentication::internal::TokenProviderImpl::TokenProviderImpl | ( | Settings | settings, |
| std::chrono::seconds | minimum_validity | ||
| ) |
Creates the TokenProviderImpl instance.
| settings | The Settings object that is used to customize the TokenEndpoint instance. |
| minimum_validity | Sets the minimum validity period of the token in seconds. |
| ErrorResponse olp::authentication::internal::TokenProviderImpl::GetErrorResponse | ( | ) | const |
Allows the olp::client::ApiError object associated with the last request to be accessed if the token request is unsuccessful.
| int olp::authentication::internal::TokenProviderImpl::GetHttpStatusCode | ( | ) | const |
Gets the HTTP status code of the last request.
| TokenResponse olp::authentication::internal::TokenProviderImpl::GetResponse | ( | client::CancellationContext & | context | ) | const |
| bool olp::authentication::internal::TokenProviderImpl::IsTokenResponseOK | ( | ) | const |
| client::OauthTokenResponse olp::authentication::internal::TokenProviderImpl::operator() | ( | client::CancellationContext & | context | ) | const |