Google OAuth2 API v1 (revision 38)



com.google.api.services.oauth2
Class Oauth2.Tokeninfo

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.googleapis.services.AbstractGoogleClientRequest<T>
              extended by com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
                  extended by com.google.api.services.oauth2.Oauth2Request<Tokeninfo>
                      extended by com.google.api.services.oauth2.Oauth2.Tokeninfo
All Implemented Interfaces:
Cloneable, Map<String,Object>
Enclosing class:
Oauth2

public class Oauth2.Tokeninfo
extends Oauth2Request<Tokeninfo>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
protected Oauth2.Tokeninfo()
          Get token info Create a request for the method "tokeninfo".
 
Method Summary
 String getAccessToken()
          The oauth2 access token
 String getIdToken()
          The ID token
 Oauth2.Tokeninfo setAccessToken(String accessToken)
          The oauth2 access token
 Oauth2.Tokeninfo setAlt(String alt)
          Data format for the response.
 Oauth2.Tokeninfo setFields(String fields)
          Selector specifying which fields to include in a partial response.
 Oauth2.Tokeninfo setIdToken(String idToken)
          The ID token
 Oauth2.Tokeninfo setKey(String key)
          API key.
 Oauth2.Tokeninfo setOauthToken(String oauthToken)
          OAuth 2.0 token for the current user.
 Oauth2.Tokeninfo setPrettyPrint(Boolean prettyPrint)
          Returns response with indentations and line breaks.
 Oauth2.Tokeninfo setQuotaUser(String quotaUser)
          Available to use for quota purposes for server-side applications.
 Oauth2.Tokeninfo setUserIp(String userIp)
          IP address of the site where the request originates.
 
Methods inherited from class com.google.api.services.oauth2.Oauth2Request
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
 
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest
getJsonContent, newExceptionOnError, queue
 
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClientRequest
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
 
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Oauth2.Tokeninfo

protected Oauth2.Tokeninfo()
Get token info Create a request for the method "tokeninfo". This request holds the parameters needed by the the oauth2 server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Oauth2.initialize(AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

Since:
1.13
Method Detail

setAlt

public Oauth2.Tokeninfo setAlt(String alt)
Description copied from class: Oauth2Request
Data format for the response.

Overrides:
setAlt in class Oauth2Request<Tokeninfo>

setFields

public Oauth2.Tokeninfo setFields(String fields)
Description copied from class: Oauth2Request
Selector specifying which fields to include in a partial response.

Overrides:
setFields in class Oauth2Request<Tokeninfo>

setKey

public Oauth2.Tokeninfo setKey(String key)
Description copied from class: Oauth2Request
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

Overrides:
setKey in class Oauth2Request<Tokeninfo>

setOauthToken

public Oauth2.Tokeninfo setOauthToken(String oauthToken)
Description copied from class: Oauth2Request
OAuth 2.0 token for the current user.

Overrides:
setOauthToken in class Oauth2Request<Tokeninfo>

setPrettyPrint

public Oauth2.Tokeninfo setPrettyPrint(Boolean prettyPrint)
Description copied from class: Oauth2Request
Returns response with indentations and line breaks.

Overrides:
setPrettyPrint in class Oauth2Request<Tokeninfo>

setQuotaUser

public Oauth2.Tokeninfo setQuotaUser(String quotaUser)
Description copied from class: Oauth2Request
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

Overrides:
setQuotaUser in class Oauth2Request<Tokeninfo>

setUserIp

public Oauth2.Tokeninfo setUserIp(String userIp)
Description copied from class: Oauth2Request
IP address of the site where the request originates. Use this if you want to enforce per-user limits.

Overrides:
setUserIp in class Oauth2Request<Tokeninfo>

getAccessToken

public String getAccessToken()
The oauth2 access token


setAccessToken

public Oauth2.Tokeninfo setAccessToken(String accessToken)
The oauth2 access token


getIdToken

public String getIdToken()
The ID token


setIdToken

public Oauth2.Tokeninfo setIdToken(String idToken)
The ID token