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

Initializes a new instance of the OAuthToken class

Parameters
tokenRefresh token value

◆ OAuthToken() [2/3]

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

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

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

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

Gets expiration date of the token.

◆ get_Expired()

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

Indicates whether token is expired

◆ get_Token()

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

Gets token value

◆ get_TokenType()

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

Gets OAuth token type

◆ GetHashCode()

int32_t Aspose::Email::Clients::OAuthToken::GetHashCode ( ) const
override

Serves as a hash function for a particular type.

Returns
A hash code for the current object.

◆ ToString()

System::String Aspose::Email::Clients::OAuthToken::ToString ( ) const
override

Returns a string that represents the current object.

Returns
A string that represents the current object.