| title | class AuthDelegate::OAuth2Token |
|---|---|
| description | Documents the authdelegate::oauth2token class of the Microsoft Information Protection (MIP) SDK. |
| author | msmbaldwin |
| ms.service | information-protection |
| ms.topic | reference |
| ms.author | mbaldwin |
| ms.date | 11/07/2023 |
A class containing access token info provided by an application.
| Members | Descriptions |
|---|---|
| public OAuth2Token() | Construct a new OAuth2Token object. |
| public OAuth2Token(const std::string& accessToken) | Construct a new OAuth2Token object from JWT access token. |
| public const std::string& GetAccessToken() const | Get the access token string. |
| public void SetAccessToken(const std::string& accessToken) | Set the access token string. |
| public const std::string& GetErrorMessage() const | Get the error message, if any. |
| public void SetErrorMessage(const std::string& errorMessage) | Set the error message. |
Construct a new OAuth2Token object.
Construct a new OAuth2Token object from JWT access token.
Parameters:
- accessToken: JWT access token.
Get the access token string.
Returns: Access token string.
Set the access token string.
Parameters:
- accessToken: Access token string.
Get the error message, if any.
Returns: Error message.
Set the error message.
Parameters:
- errorMessage: Error message.