Aspose::Email::Clients::IMultipleServicesTokenProvider Class Referenceabstract

Defines interface allowing to retrieve access token. More...

Inherits IDisposable.

Public Member Functions

virtual System::SharedPtr< OAuthTokenGetAccessToken (System::String service)=0
 Gets oAuth access token. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server. More...
 
virtual System::SharedPtr< OAuthTokenGetAccessToken (bool ignoreExistingToken, System::String service)=0
 Gets oAuth access token. More...
 

Detailed Description

Defines interface allowing to retrieve access token.

Member Function Documentation

◆ GetAccessToken() [1/2]

virtual System::SharedPtr<OAuthToken> Aspose::Email::Clients::IMultipleServicesTokenProvider::GetAccessToken ( bool  ignoreExistingToken,
System::String  service 
)
pure virtual

Gets oAuth access token.

Parameters
ignoreExistingTokenIf ignoreExistingToken is true, requests new token from a server. Otherwise behaviour is depended on whether token exists or not. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.
serviceServices that this access token applies to.
Returns
Returns oAuth access token

◆ GetAccessToken() [2/2]

virtual System::SharedPtr<OAuthToken> Aspose::Email::Clients::IMultipleServicesTokenProvider::GetAccessToken ( System::String  service)
pure virtual

Gets oAuth access token. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.

Parameters
serviceServices that this access token applies to.
Returns
Returns oAuth access token