TokenProvider Class

Class TokenProvider allows to retrieve access token for mail services.
Inheritance Hierarchy

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

The TokenProvider type exposes the following members.

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
Public methodDispose
Performs releasing resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(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
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetInstance
Gets an instance of the OutlookTokenProvider for defined parameters.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also