public final class Tokeninfo
extends com.google.api.client.json.GenericJson
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-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Tokeninfo() |
| Modifier and Type | Method and Description |
|---|---|
Tokeninfo |
clone() |
java.lang.String |
getAccessType()
The access type granted with this token.
|
java.lang.String |
getAudience()
Who is the intended audience for this token.
|
java.lang.String |
getEmail()
The email address of the user.
|
java.lang.Integer |
getExpiresIn()
The expiry time of the token, as number of seconds left until expiry.
|
java.lang.String |
getIssuedTo()
To whom was the token issued to.
|
java.lang.String |
getScope()
The space separated list of scopes granted to this token.
|
java.lang.String |
getTokenHandle()
The token handle associated with this token.
|
java.lang.String |
getUserId()
The obfuscated user id.
|
java.lang.Boolean |
getVerifiedEmail()
Boolean flag which is true if the email address is verified.
|
Tokeninfo |
set(java.lang.String fieldName,
java.lang.Object value) |
Tokeninfo |
setAccessType(java.lang.String accessType)
The access type granted with this token.
|
Tokeninfo |
setAudience(java.lang.String audience)
Who is the intended audience for this token.
|
Tokeninfo |
setEmail(java.lang.String email)
The email address of the user.
|
Tokeninfo |
setExpiresIn(java.lang.Integer expiresIn)
The expiry time of the token, as number of seconds left until expiry.
|
Tokeninfo |
setIssuedTo(java.lang.String issuedTo)
To whom was the token issued to.
|
Tokeninfo |
setScope(java.lang.String scope)
The space separated list of scopes granted to this token.
|
Tokeninfo |
setTokenHandle(java.lang.String tokenHandle)
The token handle associated with this token.
|
Tokeninfo |
setUserId(java.lang.String userId)
The obfuscated user id.
|
Tokeninfo |
setVerifiedEmail(java.lang.Boolean verifiedEmail)
Boolean flag which is true if the email address is verified.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getAccessType()
null for nonepublic Tokeninfo setAccessType(java.lang.String accessType)
accessType - accessType or null for nonepublic java.lang.String getAudience()
null for nonepublic Tokeninfo setAudience(java.lang.String audience)
audience - audience or null for nonepublic java.lang.String getEmail()
null for nonepublic Tokeninfo setEmail(java.lang.String email)
email - email or null for nonepublic java.lang.Integer getExpiresIn()
null for nonepublic Tokeninfo setExpiresIn(java.lang.Integer expiresIn)
expiresIn - expiresIn or null for nonepublic java.lang.String getIssuedTo()
null for nonepublic Tokeninfo setIssuedTo(java.lang.String issuedTo)
issuedTo - issuedTo or null for nonepublic java.lang.String getScope()
null for nonepublic Tokeninfo setScope(java.lang.String scope)
scope - scope or null for nonepublic java.lang.String getTokenHandle()
null for nonepublic Tokeninfo setTokenHandle(java.lang.String tokenHandle)
tokenHandle - tokenHandle or null for nonepublic java.lang.String getUserId()
null for nonepublic Tokeninfo setUserId(java.lang.String userId)
userId - userId or null for nonepublic java.lang.Boolean getVerifiedEmail()
null for nonepublic Tokeninfo setVerifiedEmail(java.lang.Boolean verifiedEmail)
verifiedEmail - verifiedEmail or null for nonepublic Tokeninfo set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Tokeninfo clone()
clone in class com.google.api.client.json.GenericJson