|
enum | { undefined_expiration = -1
} |
|
◆ getAccessToken()
const std::string & pulsar::Oauth2TokenResult::getAccessToken |
( |
| ) |
const |
- Returns
- the access token string
◆ getExpiresIn()
int64_t pulsar::Oauth2TokenResult::getExpiresIn |
( |
| ) |
const |
- Returns
- the token lifetime in milliseconds
◆ getIdToken()
const std::string & pulsar::Oauth2TokenResult::getIdToken |
( |
| ) |
const |
◆ getRefreshToken()
const std::string & pulsar::Oauth2TokenResult::getRefreshToken |
( |
| ) |
const |
- Returns
- the refresh token which can be used to obtain new access tokens using the same authorization grant or null for none
◆ setAccessToken()
Oauth2TokenResult & pulsar::Oauth2TokenResult::setAccessToken |
( |
const std::string & |
accessToken | ) |
|
Set the access token string
- Parameters
-
accessToken | the access token string |
◆ setExpiresIn()
Oauth2TokenResult & pulsar::Oauth2TokenResult::setExpiresIn |
( |
const int64_t |
expiresIn | ) |
|
Set the token lifetime
- Parameters
-
expiresIn | the token lifetime |
◆ setIdToken()
Oauth2TokenResult & pulsar::Oauth2TokenResult::setIdToken |
( |
const std::string & |
idToken | ) |
|
Set the ID token
- Parameters
-
◆ setRefreshToken()
Oauth2TokenResult & pulsar::Oauth2TokenResult::setRefreshToken |
( |
const std::string & |
refreshToken | ) |
|
Set the refresh token which can be used to obtain new access tokens using the same authorization grant or null for none
- Parameters
-
refreshToken | the refresh token |
The documentation for this class was generated from the following file: