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

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< ITokenProviderget_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 ()
 

Detailed Description

Represents the NetworkCredential for OAuth authentication.

Constructor & Destructor Documentation

◆ OAuthNetworkCredential() [1/4]

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

Initializes a new instance of the OAuthNetworkCredential class

Parameters
accessTokenAccess token

◆ OAuthNetworkCredential() [2/4]

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::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::Clients::OAuthNetworkCredential::OAuthNetworkCredential ( System::String  userName,
System::SharedPtr< ITokenProvider tokenProvider 
)

Initializes a new instance of the OAuthNetworkCredential class

Parameters
userNameUser name
tokenProviderToken provider

◆ ~OAuthNetworkCredential()

virtual Aspose::Email::Clients::OAuthNetworkCredential::~OAuthNetworkCredential ( )
protectedvirtual

Member Function Documentation

◆ get_AccessToken()

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

Gets OAuth 2.0 access token.

◆ get_TokenProvider()

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

Gets the token provider.