OAuth 1.0 token and associated information.
More...
#include <oauth1.h>
OAuth 1.0 token and associated information.
web::http::oauth1::experimental::oauth1_token::oauth1_token |
( |
| ) |
|
|
inline |
Constructs an initially empty invalid access token.
web::http::oauth1::experimental::oauth1_token::oauth1_token |
( |
utility::string_t |
access_token, |
|
|
utility::string_t |
secret |
|
) |
| |
|
inline |
Constructs a OAuth1 token from a given access token and secret.
- Parameters
-
access_token | Access token string. |
secret | Token secret string. |
const utility::string_t& web::http::oauth1::experimental::oauth1_token::access_token |
( |
| ) |
const |
|
inline |
Get access token.
- Returns
- The access token string.
const std::map<utility::string_t, utility::string_t>& web::http::oauth1::experimental::oauth1_token::additional_parameters |
( |
| ) |
const |
|
inline |
Retrieves any additional parameters.
- Returns
- A map containing the additional parameters.
void web::http::oauth1::experimental::oauth1_token::clear_additional_parameters |
( |
| ) |
|
|
inline |
Clears all additional parameters.
bool web::http::oauth1::experimental::oauth1_token::is_valid_access_token |
( |
| ) |
const |
|
inline |
Get access token validity state. If true, token is a valid access token.
- Returns
- Access token validity state of the token.
const utility::string_t& web::http::oauth1::experimental::oauth1_token::secret |
( |
| ) |
const |
|
inline |
Get token secret.
- Returns
- Token secret string.
void web::http::oauth1::experimental::oauth1_token::set_access_token |
( |
utility::string_t && |
access_token | ) |
|
|
inline |
Set access token.
- Parameters
-
access_token | Access token string to set. |
void web::http::oauth1::experimental::oauth1_token::set_access_token |
( |
const utility::string_t & |
access_token | ) |
|
|
inline |
Set access token.
- Parameters
-
access_token | Access token string to set. |
void web::http::oauth1::experimental::oauth1_token::set_additional_parameter |
( |
utility::string_t && |
paramName, |
|
|
utility::string_t && |
paramValue |
|
) |
| |
|
inline |
Sets a specific parameter additional parameter.
- Parameters
-
paramName | Parameter name. |
paramValue | Parameter value. |
void web::http::oauth1::experimental::oauth1_token::set_additional_parameter |
( |
const utility::string_t & |
paramName, |
|
|
const utility::string_t & |
paramValue |
|
) |
| |
|
inline |
Sets a specific parameter additional parameter.
- Parameters
-
paramName | Parameter name. |
paramValue | Parameter value. |
void web::http::oauth1::experimental::oauth1_token::set_secret |
( |
utility::string_t && |
secret | ) |
|
|
inline |
Set token secret.
- Parameters
-
secret | Token secret string to set. |
void web::http::oauth1::experimental::oauth1_token::set_secret |
( |
const utility::string_t & |
secret | ) |
|
|
inline |
Set token secret.
- Parameters
-
secret | Token secret string to set. |
The documentation for this class was generated from the following file: