Google OAuth2 API v1 (revision 38)



com.google.api.services.oauth2.model
Class 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.json.GenericJson
              extended by com.google.api.services.oauth2.model.Tokeninfo
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class Tokeninfo
extends GenericJson

Model definition for Tokeninfo.

This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google OAuth2 API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

Author:
Google, Inc.

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
Tokeninfo()
           
 
Method Summary
 String getAccessType()
          The access type granted with this token.
 String getAudience()
          Who is the intended audience for this token.
 String getEmail()
          The email address of the user.
 Boolean getEmailVerified()
          Boolean flag which is true if the email address is verified.
 Integer getExpiresIn()
          The expiry time of the token, as number of seconds left until expiry.
 Integer getIssuedAt()
          The issue time of the token, as number of seconds.
 String getIssuedTo()
          To whom was the token issued to.
 String getIssuer()
          Who issued the token.
 String getNonce()
          Nonce of the id token.
 String getScope()
          The space separated list of scopes granted to this token.
 String getUserId()
          The Gaia obfuscated user id.
 Boolean getVerifiedEmail()
          Boolean flag which is true if the email address is verified.
 Tokeninfo setAccessType(String accessType)
          The access type granted with this token.
 Tokeninfo setAudience(String audience)
          Who is the intended audience for this token.
 Tokeninfo setEmail(String email)
          The email address of the user.
 Tokeninfo setEmailVerified(Boolean emailVerified)
          Boolean flag which is true if the email address is verified.
 Tokeninfo setExpiresIn(Integer expiresIn)
          The expiry time of the token, as number of seconds left until expiry.
 Tokeninfo setIssuedAt(Integer issuedAt)
          The issue time of the token, as number of seconds.
 Tokeninfo setIssuedTo(String issuedTo)
          To whom was the token issued to.
 Tokeninfo setIssuer(String issuer)
          Who issued the token.
 Tokeninfo setNonce(String nonce)
          Nonce of the id token.
 Tokeninfo setScope(String scope)
          The space separated list of scopes granted to this token.
 Tokeninfo setUserId(String userId)
          The Gaia obfuscated user id.
 Tokeninfo setVerifiedEmail(Boolean verifiedEmail)
          Boolean flag which is true if the email address is verified.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tokeninfo

public Tokeninfo()
Method Detail

getAccessType

public String getAccessType()
The access type granted with this token. It can be offline or online. The value returned may be null.


setAccessType

public Tokeninfo setAccessType(String accessType)
The access type granted with this token. It can be offline or online. The value set may be null.


getAudience

public String getAudience()
Who is the intended audience for this token. In general the same as issued_to. The value returned may be null.


setAudience

public Tokeninfo setAudience(String audience)
Who is the intended audience for this token. In general the same as issued_to. The value set may be null.


getEmail

public String getEmail()
The email address of the user. Present only if the email scope is present in the request. The value returned may be null.


setEmail

public Tokeninfo setEmail(String email)
The email address of the user. Present only if the email scope is present in the request. The value set may be null.


getEmailVerified

public Boolean getEmailVerified()
Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request. The value returned may be null.


setEmailVerified

public Tokeninfo setEmailVerified(Boolean emailVerified)
Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request. The value set may be null.


getExpiresIn

public Integer getExpiresIn()
The expiry time of the token, as number of seconds left until expiry. The value returned may be null.


setExpiresIn

public Tokeninfo setExpiresIn(Integer expiresIn)
The expiry time of the token, as number of seconds left until expiry. The value set may be null.


getIssuedAt

public Integer getIssuedAt()
The issue time of the token, as number of seconds. The value returned may be null.


setIssuedAt

public Tokeninfo setIssuedAt(Integer issuedAt)
The issue time of the token, as number of seconds. The value set may be null.


getIssuedTo

public String getIssuedTo()
To whom was the token issued to. In general the same as audience. The value returned may be null.


setIssuedTo

public Tokeninfo setIssuedTo(String issuedTo)
To whom was the token issued to. In general the same as audience. The value set may be null.


getIssuer

public String getIssuer()
Who issued the token. The value returned may be null.


setIssuer

public Tokeninfo setIssuer(String issuer)
Who issued the token. The value set may be null.


getNonce

public String getNonce()
Nonce of the id token. The value returned may be null.


setNonce

public Tokeninfo setNonce(String nonce)
Nonce of the id token. The value set may be null.


getScope

public String getScope()
The space separated list of scopes granted to this token. The value returned may be null.


setScope

public Tokeninfo setScope(String scope)
The space separated list of scopes granted to this token. The value set may be null.


getUserId

public String getUserId()
The Gaia obfuscated user id. The value returned may be null.


setUserId

public Tokeninfo setUserId(String userId)
The Gaia obfuscated user id. The value set may be null.


getVerifiedEmail

public Boolean getVerifiedEmail()
Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request. The value returned may be null.


setVerifiedEmail

public Tokeninfo setVerifiedEmail(Boolean verifiedEmail)
Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request. The value set may be null.