TokenProvider

TokenProvider class

Inherits: Aspose::Email::Clients::ITokenProvider

Class TokenProvider allows to retrieve access token for mail services.

Constructors

NameDescription
TokenProvider (4 overloads)Initializes a new instance of the TokenProvider class

Methods

NameDescription
DisposePerforms releasing resources.
get_ClientIdThe client ID obtained during application registration.
get_ClientSecretThe client secret obtained during application registration.
get_ExtraParametersGets extra parameters for request
get_LoginGets login for basic authorization
get_PasswordGets password for basic authorization
get_RefreshTokenOAuth 2.0 refresh token
get_RequestUrlThe url to obtain access token.
get_UseBasicAuthorizationGets value which indicates whether basic authorization is used
getAccessTokenGets oAuth access token.
GetAccessToken (2 overloads)Gets oAuth access token. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.
GetInstanceGets an instance of the OutlookTokenProvider for defined parameters.
set_LoginSets login for basic authorization
set_PasswordSets password for basic authorization
set_UseBasicAuthorizationSets value which indicates whether basic authorization is used