TokenProvider
Contents
[
Hide
]TokenProvider class
Inherits: Aspose::Email::Clients::ITokenProvider
Class TokenProvider allows to retrieve access token for mail services.
Constructors
| Name | Description |
|---|---|
| TokenProvider (4 overloads) | Initializes a new instance of the TokenProvider class |
Methods
| Name | Description |
|---|---|
| Dispose | Performs releasing resources. |
| get_ClientId | The client ID obtained during application registration. |
| get_ClientSecret | The client secret obtained during application registration. |
| get_ExtraParameters | Gets extra parameters for request |
| get_Login | Gets login for basic authorization |
| get_Password | Gets password for basic authorization |
| get_RefreshToken | OAuth 2.0 refresh token |
| get_RequestUrl | The url to obtain access token. |
| get_UseBasicAuthorization | Gets value which indicates whether basic authorization is used |
| getAccessToken | Gets 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. |
| GetInstance | Gets an instance of the OutlookTokenProvider for defined parameters. |
| set_Login | Sets login for basic authorization |
| set_Password | Sets password for basic authorization |
| set_UseBasicAuthorization | Sets value which indicates whether basic authorization is used |