
## TokenProvider class

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

Class TokenProvider allows to retrieve access token for mail services.

## Constructors

| Name | Description |
| --- | --- |
| [TokenProvider (4 overloads)](./tokenprovider/) | Initializes a new instance of the TokenProvider class |

## Methods

| Name | Description |
| --- | --- |
| [Dispose](./dispose/) | Performs releasing resources. |
| [get_ClientId](./get_clientid/) | The client ID obtained during application registration. |
| [get_ClientSecret](./get_clientsecret/) | The client secret obtained during application registration. |
| [get_ExtraParameters](./get_extraparameters/) | Gets extra parameters for request |
| [get_Login](./get_login/) | Gets login for basic authorization |
| [get_Password](./get_password/) | Gets password for basic authorization |
| [get_RefreshToken](./get_refreshtoken/) | OAuth 2.0 refresh token |
| [get_RequestUrl](./get_requesturl/) | The url to obtain access token. |
| [get_UseBasicAuthorization](./get_usebasicauthorization/) | Gets value which indicates whether basic authorization is used |
| [getAccessToken](./getaccesstoken/) | Gets oAuth access token. |
| [GetAccessToken (2 overloads)](./getaccesstoken/) | Gets oAuth access token. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server. |
| [GetInstance](./getinstance/) | Gets an instance of the OutlookTokenProvider for defined parameters. |
| [set_Login](./set_login/) | Sets login for basic authorization |
| [set_Password](./set_password/) | Sets password for basic authorization |
| [set_UseBasicAuthorization](./set_usebasicauthorization/) | Sets value which indicates whether basic authorization is used |

