Aspose::Email::Clients::OAuthNetworkCredential Class Reference

Represents the NetworkCredential for OAuth authentication. More...

Inherits NetworkCredential.

Public Member Functions

ASPOSE_EMAIL_SHARED_API System::String get_AccessToken ()
 Gets OAuth 2.0 access token. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< ITokenProviderget_TokenProvider ()
 Gets the token provider. More...
 
ASPOSE_EMAIL_SHARED_API OAuthNetworkCredential (System::String accessToken)
 Initializes a new instance of the OAuthNetworkCredential class More...
 
ASPOSE_EMAIL_SHARED_API OAuthNetworkCredential (System::SharedPtr< ITokenProvider > tokenProvider)
 Initializes a new instance of the OAuthNetworkCredential class More...
 
ASPOSE_EMAIL_SHARED_API OAuthNetworkCredential (System::String userName, System::String accessToken)
 Initializes a new instance of the OAuthNetworkCredential class More...
 
ASPOSE_EMAIL_SHARED_API OAuthNetworkCredential (System::String userName, System::SharedPtr< ITokenProvider > tokenProvider)
 Initializes a new instance of the OAuthNetworkCredential class More...
 

Detailed Description

Represents the NetworkCredential for OAuth authentication.

Constructor & Destructor Documentation

◆ OAuthNetworkCredential() [1/4]

ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::OAuthNetworkCredential::OAuthNetworkCredential ( System::String  accessToken)

Initializes a new instance of the OAuthNetworkCredential class

Parameters
accessTokenAccess token

◆ OAuthNetworkCredential() [2/4]

ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::OAuthNetworkCredential::OAuthNetworkCredential ( System::SharedPtr< ITokenProvider tokenProvider)

Initializes a new instance of the OAuthNetworkCredential class

Parameters
tokenProviderToken provider

◆ OAuthNetworkCredential() [3/4]

ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::OAuthNetworkCredential::OAuthNetworkCredential ( System::String  userName,
System::String  accessToken 
)

Initializes a new instance of the OAuthNetworkCredential class

Parameters
userNameUser name
accessTokenAccess token

◆ OAuthNetworkCredential() [4/4]

ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::OAuthNetworkCredential::OAuthNetworkCredential ( System::String  userName,
System::SharedPtr< ITokenProvider tokenProvider 
)

Initializes a new instance of the OAuthNetworkCredential class

Parameters
userNameUser name
tokenProviderToken provider

Member Function Documentation

◆ get_AccessToken()

ASPOSE_EMAIL_SHARED_API System::String Aspose::Email::Clients::OAuthNetworkCredential::get_AccessToken ( )

Gets OAuth 2.0 access token.

◆ get_TokenProvider()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<ITokenProvider> Aspose::Email::Clients::OAuthNetworkCredential::get_TokenProvider ( )

Gets the token provider.