Aspose::Email::Clients::OAuthToken Class Reference

Contains OAuth token data such like token value, token type, expiration date. More...

Inherits Object.

Public Member Functions

ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::TokenType get_TokenType ()
 Gets OAuth token type More...
 
ASPOSE_EMAIL_SHARED_API System::String get_Token ()
 Gets token value More...
 
ASPOSE_EMAIL_SHARED_API System::DateTime get_ExpirationDate ()
 Gets expiration date of the token. More...
 
ASPOSE_EMAIL_SHARED_API bool get_Expired ()
 Indicates whether token is expired More...
 
ASPOSE_EMAIL_SHARED_API OAuthToken (System::String token)
 Initializes a new instance of the OAuthToken class More...
 
ASPOSE_EMAIL_SHARED_API OAuthToken (System::String token, System::DateTime expirationDate)
 Initializes a new instance of the OAuthToken class More...
 
ASPOSE_EMAIL_SHARED_API OAuthToken (System::String token, Aspose::Email::Clients::TokenType tokenType, System::DateTime expirationDate)
 Initializes a new instance of the OAuthToken class More...
 
virtual ASPOSE_EMAIL_SHARED_API bool Equals (System::SharedPtr< System::Object > obj)
 Determines whether the specified object is equal to the current object. More...
 
virtual ASPOSE_EMAIL_SHARED_API int32_t GetHashCode ()
 Serves as a hash function for a particular type. More...
 
virtual ASPOSE_EMAIL_SHARED_API System::String ToString ()
 Returns a string that represents the current object. More...
 

Detailed Description

Contains OAuth token data such like token value, token type, expiration date.

Constructor & Destructor Documentation

◆ OAuthToken() [1/3]

ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::OAuthToken::OAuthToken ( System::String  token)

Initializes a new instance of the OAuthToken class

Parameters
tokenRefresh token value

◆ OAuthToken() [2/3]

ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::OAuthToken::OAuthToken ( System::String  token,
System::DateTime  expirationDate 
)

Initializes a new instance of the OAuthToken class

Parameters
tokenAccess token value
expirationDateExpiration date of the token.

◆ OAuthToken() [3/3]

ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::OAuthToken::OAuthToken ( System::String  token,
Aspose::Email::Clients::TokenType  tokenType,
System::DateTime  expirationDate 
)

Initializes a new instance of the OAuthToken class

Parameters
tokenToken value
tokenTypeOAuth token type
expirationDateExpiration date of the token.

Member Function Documentation

◆ Equals()

virtual ASPOSE_EMAIL_SHARED_API bool Aspose::Email::Clients::OAuthToken::Equals ( System::SharedPtr< System::Object >  obj)
virtual

Determines whether the specified object is equal to the current object.

Parameters
objThe object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.

◆ get_ExpirationDate()

ASPOSE_EMAIL_SHARED_API System::DateTime Aspose::Email::Clients::OAuthToken::get_ExpirationDate ( )

Gets expiration date of the token.

◆ get_Expired()

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::Clients::OAuthToken::get_Expired ( )

Indicates whether token is expired

◆ get_Token()

ASPOSE_EMAIL_SHARED_API System::String Aspose::Email::Clients::OAuthToken::get_Token ( )

Gets token value

◆ get_TokenType()

ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::TokenType Aspose::Email::Clients::OAuthToken::get_TokenType ( )

Gets OAuth token type

◆ GetHashCode()

virtual ASPOSE_EMAIL_SHARED_API int32_t Aspose::Email::Clients::OAuthToken::GetHashCode ( )
virtual

Serves as a hash function for a particular type.

Returns
A hash code for the current object.

◆ ToString()

virtual ASPOSE_EMAIL_SHARED_API System::String Aspose::Email::Clients::OAuthToken::ToString ( )
virtual

Returns a string that represents the current object.

Returns
A string that represents the current object.