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... | |
Contains OAuth token data such like token value, token type, expiration date.
| Aspose::Email::Clients::OAuthToken::OAuthToken | ( | System::String | token | ) |
Initializes a new instance of the OAuthToken class
| token | Refresh token value |
| Aspose::Email::Clients::OAuthToken::OAuthToken | ( | System::String | token, |
| System::DateTime | expirationDate | ||
| ) |
Initializes a new instance of the OAuthToken class
| token | Access token value |
| expirationDate | Expiration date of the token. |
| Aspose::Email::Clients::OAuthToken::OAuthToken | ( | System::String | token, |
| Aspose::Email::Clients::TokenType | tokenType, | ||
| System::DateTime | expirationDate | ||
| ) |
Initializes a new instance of the OAuthToken class
| token | Token value |
| tokenType | OAuth token type |
| expirationDate | Expiration date of the token. |
|
override |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
| System::DateTime Aspose::Email::Clients::OAuthToken::get_ExpirationDate | ( | ) | const |
Gets expiration date of the token.
| bool Aspose::Email::Clients::OAuthToken::get_Expired | ( | ) |
Indicates whether token is expired
| System::String Aspose::Email::Clients::OAuthToken::get_Token | ( | ) | const |
Gets token value
| Aspose::Email::Clients::TokenType Aspose::Email::Clients::OAuthToken::get_TokenType | ( | ) | const |
Gets OAuth token type
|
override |
Serves as a hash function for a particular type.
|
override |
Returns a string that represents the current object.