![]() |
AT&T API Platform SDK for Microsoft®
2.3.3
Wrapper classes that allow developers to build robust applications using .NET
|
Encapsulates OAuth token data and parsing. More...
Classes | |
class | OAuthTokenRaw |
Internal class used for JSON deserialization. | |
Public Member Functions | |
OAuthToken () | |
Initializes a new instance of the OAuthToken class. | |
OAuthToken (string accessToken, string refreshToken, string expiresIn) | |
Initializes a new instance of the OAuthToken class. | |
override string | ToString () |
Returns the string version of the OAuthToken object. | |
bool | IsExpired () |
Checks the access token for expiration. | |
Static Public Member Functions | |
static OAuthToken | ParseJSON (string jsonInput) |
Creates an OAuthToken from a JSON string. | |
Properties | |
string | AccessToken [get] |
Gets the access token value. | |
string | RefreshToken [get] |
Gets the refresh token value. | |
DateTime | Expiration [get] |
Gets the expiration time of this access token. | |
DateTime | CreationTime [get] |
Gets the creation time of this access token. | |
long | ExpiresIn [get] |
Gets the number of seconds until the access token expires. |
Encapsulates OAuth token data and parsing.
Initializes a new instance of the OAuthToken class.
ATT_MSSDK.OAuthToken.OAuthToken | ( | string | accessToken, |
string | refreshToken, | ||
string | expiresIn | ||
) |
Initializes a new instance of the OAuthToken class.
accessToken | Access token value returned by the server. |
refreshToken | Refresh token value returned by the server. |
expiresIn | Number of seconds until the access token expires. |
ArgumentException | Thrown if headers are null, empty, or invalid. |
bool ATT_MSSDK.OAuthToken.IsExpired | ( | ) |
Checks the access token for expiration.
static OAuthToken ATT_MSSDK.OAuthToken.ParseJSON | ( | string | jsonInput | ) | [static] |
Creates an OAuthToken from a JSON string.
jsonInput | The JSON string to parse. |
override string ATT_MSSDK.OAuthToken.ToString | ( | ) |
Returns the string version of the OAuthToken object.
string ATT_MSSDK.OAuthToken.AccessToken [get] |
Gets the access token value.
DateTime ATT_MSSDK.OAuthToken.CreationTime [get] |
Gets the creation time of this access token.
DateTime ATT_MSSDK.OAuthToken.Expiration [get] |
Gets the expiration time of this access token.
long ATT_MSSDK.OAuthToken.ExpiresIn [get] |
Gets the number of seconds until the access token expires.
string ATT_MSSDK.OAuthToken.RefreshToken [get] |
Gets the refresh token value.