Google API Client Library for .NET  1.10.0
Public Member Functions | Properties | List of all members
Google.Apis.Auth.OAuth2.Responses.TokenResponse Class Reference

OAuth 2.0 model for a successful access token response as specified in http://tools.ietf.org/html/rfc6749#section-5.1. More...

Public Member Functions

bool IsExpired (IClock clock)
 Returns true if the token is expired or it's going to be expired in the next minute. More...
 

Properties

string AccessToken [get, set]
 Gets or sets the access token issued by the authorization server. More...
 
string TokenType [get, set]
 Gets or sets the token type as specified in http://tools.ietf.org/html/rfc6749#section-7.1. More...
 
Nullable< long > ExpiresInSeconds [get, set]
 Gets or sets the lifetime in seconds of the access token. More...
 
string RefreshToken [get, set]
 Gets or sets the refresh token which can be used to obtain a new access token. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated. More...
 
string Scope [get, set]
 Gets or sets the scope of the access token as specified in http://tools.ietf.org/html/rfc6749#section-3.3. More...
 
DateTime Issued [get, set]
 The date and time that this token was issued. More...
 

Detailed Description

OAuth 2.0 model for a successful access token response as specified in http://tools.ietf.org/html/rfc6749#section-5.1.

Member Function Documentation

bool Google.Apis.Auth.OAuth2.Responses.TokenResponse.IsExpired ( IClock  clock)
inline

Returns true if the token is expired or it's going to be expired in the next minute.

Property Documentation

string Google.Apis.Auth.OAuth2.Responses.TokenResponse.AccessToken
getset

Gets or sets the access token issued by the authorization server.

Nullable<long> Google.Apis.Auth.OAuth2.Responses.TokenResponse.ExpiresInSeconds
getset

Gets or sets the lifetime in seconds of the access token.

DateTime Google.Apis.Auth.OAuth2.Responses.TokenResponse.Issued
getset

The date and time that this token was issued.

It should be set by the CLIENT after the token was received from the server.

string Google.Apis.Auth.OAuth2.Responses.TokenResponse.RefreshToken
getset

Gets or sets the refresh token which can be used to obtain a new access token. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated.

string Google.Apis.Auth.OAuth2.Responses.TokenResponse.Scope
getset

Gets or sets the scope of the access token as specified in http://tools.ietf.org/html/rfc6749#section-3.3.

string Google.Apis.Auth.OAuth2.Responses.TokenResponse.TokenType
getset

Gets or sets the token type as specified in http://tools.ietf.org/html/rfc6749#section-7.1.


The documentation for this class was generated from the following file: