ITokenProvider Interface

Defines interface allowing to retrieve access token.

Namespace:  Aspose.Email.Clients
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public interface ITokenProvider : IDisposable

The ITokenProvider type exposes the following members.

Methods
  NameDescription
Public methodDispose (Inherited from IDisposable.)
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.
See Also