pulsar-client-cpp
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
pulsar::Oauth2TokenResult Class Reference

Public Types

enum  { undefined_expiration = -1 }
 

Public Member Functions

Oauth2TokenResultsetAccessToken (const std::string &accessToken)
 
Oauth2TokenResultsetIdToken (const std::string &idToken)
 
Oauth2TokenResultsetRefreshToken (const std::string &refreshToken)
 
Oauth2TokenResultsetExpiresIn (const int64_t expiresIn)
 
const std::string & getAccessToken () const
 
const std::string & getIdToken () const
 
const std::string & getRefreshToken () const
 
int64_t getExpiresIn () const
 

Member Function Documentation

◆ 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
Returns
the ID token

◆ 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
accessTokenthe access token string

◆ setExpiresIn()

Oauth2TokenResult & pulsar::Oauth2TokenResult::setExpiresIn ( const int64_t  expiresIn)

Set the token lifetime

Parameters
expiresInthe token lifetime

◆ setIdToken()

Oauth2TokenResult & pulsar::Oauth2TokenResult::setIdToken ( const std::string &  idToken)

Set the ID token

Parameters
idTokenthe ID token

◆ 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
refreshTokenthe refresh token

The documentation for this class was generated from the following file: