Represents the NetworkCredential for OAuth authentication. More...
Inherits NetworkCredential.
Public Member Functions | |
System::String | get_AccessToken () const |
Gets OAuth 2.0 access token. More... | |
System::SharedPtr< ITokenProvider > | get_TokenProvider () const |
Gets the token provider. More... | |
OAuthNetworkCredential (System::String accessToken) | |
Initializes a new instance of the OAuthNetworkCredential class More... | |
OAuthNetworkCredential (System::SharedPtr< ITokenProvider > tokenProvider) | |
Initializes a new instance of the OAuthNetworkCredential class More... | |
OAuthNetworkCredential (System::String userName, System::String accessToken) | |
Initializes a new instance of the OAuthNetworkCredential class More... | |
OAuthNetworkCredential (System::String userName, System::SharedPtr< ITokenProvider > tokenProvider) | |
Initializes a new instance of the OAuthNetworkCredential class More... | |
Protected Member Functions | |
virtual | ~OAuthNetworkCredential () |
Represents the NetworkCredential for OAuth authentication.
Aspose::Email::Clients::OAuthNetworkCredential::OAuthNetworkCredential | ( | System::String | accessToken | ) |
Initializes a new instance of the OAuthNetworkCredential class
accessToken | Access token |
Aspose::Email::Clients::OAuthNetworkCredential::OAuthNetworkCredential | ( | System::SharedPtr< ITokenProvider > | tokenProvider | ) |
Initializes a new instance of the OAuthNetworkCredential class
tokenProvider | Token provider |
Aspose::Email::Clients::OAuthNetworkCredential::OAuthNetworkCredential | ( | System::String | userName, |
System::String | accessToken | ||
) |
Initializes a new instance of the OAuthNetworkCredential class
userName | User name |
accessToken | Access token |
Aspose::Email::Clients::OAuthNetworkCredential::OAuthNetworkCredential | ( | System::String | userName, |
System::SharedPtr< ITokenProvider > | tokenProvider | ||
) |
Initializes a new instance of the OAuthNetworkCredential class
userName | User name |
tokenProvider | Token provider |
|
protectedvirtual |
System::String Aspose::Email::Clients::OAuthNetworkCredential::get_AccessToken | ( | ) | const |
Gets OAuth 2.0 access token.
System::SharedPtr<ITokenProvider> Aspose::Email::Clients::OAuthNetworkCredential::get_TokenProvider | ( | ) | const |
Gets the token provider.