A class containing access token info provided by an application.
More...
#include <src/api/mip/common_types.h>
A class containing access token info provided by an application.
Definition at line 381 of file common_types.h.
◆ OAuth2Token() [1/2]
AuthDelegate::OAuth2Token::OAuth2Token |
( |
| ) |
|
|
inline |
◆ OAuth2Token() [2/2]
AuthDelegate::OAuth2Token::OAuth2Token |
( |
const std::string & | accessToken | ) |
|
|
inline |
Construct a new OAuth2Token object from JWT access token.
- Parameters
-
accessToken | JWT access token. |
Definition at line 393 of file common_types.h.
393: mAccessToken(accessToken) {}
◆ GetAccessToken()
const std::string & AuthDelegate::OAuth2Token::GetAccessToken |
( |
| ) |
const |
|
inline |
Get the access token string.
- Returns
- Access token string.
Definition at line 400 of file common_types.h.
400{ return mAccessToken; }
◆ GetErrorMessage()
const std::string & AuthDelegate::OAuth2Token::GetErrorMessage |
( |
| ) |
const |
|
inline |
Get the error message, if any.
- Returns
- Error message.
Definition at line 414 of file common_types.h.
414{ return mErrorMessage; }
◆ SetAccessToken()
void AuthDelegate::OAuth2Token::SetAccessToken |
( |
const std::string & | accessToken | ) |
|
|
inline |
Set the access token string.
- Parameters
-
accessToken | Access token string. |
Definition at line 407 of file common_types.h.
407{ mAccessToken = accessToken; }
◆ SetErrorMessage()
void AuthDelegate::OAuth2Token::SetErrorMessage |
( |
const std::string & | errorMessage | ) |
|
|
inline |
Set the error message.
- Parameters
-
errorMessage | Error message. |
Definition at line 421 of file common_types.h.
421{ mErrorMessage = errorMessage; }
The documentation for this class was generated from the following file: