TokenProvider Class

Class TokenProvider allows to retrieve access token for mail services.
Inheritance Hierarchy
SystemObject
  Aspose.Email.ClientsTokenProvider

Namespace:  Aspose.Email.Clients
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public class TokenProvider : ITokenProvider, 
	IDisposable

The TokenProvider type exposes the following members.

Properties
  NameDescription
Public propertyClientId
The client ID obtained during application registration.
Public propertyClientSecret
The client secret obtained during application registration.
Public propertyExtraParameters
Gets extra parameters for request
Public propertyLogin
Gets or sets login for basic authorization
Public propertyPassword
Gets or sets password for basic authorization
Public propertyRefreshToken
OAuth 2.0 refresh token
Public propertyRequestUrl
The url to obtain access token.
Public propertyUseBasicAuthorization
Gets or sets value which indicates whether basic authorization is used
Methods
  NameDescription
Public methodDispose
Performs releasing resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetAccessToken
Gets oAuth access token. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.
Public methodGetAccessToken(Boolean)
Gets oAuth access token.
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetInstance
Gets an instance of the OutlookTokenProvider for defined parameters.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
See Also