public final class Tokeninfo extends 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Tokeninfo() |
| Modifier and Type | Method and Description |
|---|---|
Tokeninfo |
clone() |
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.
|
Integer |
getExpiresIn()
The expiry time of the token, as number of seconds left until expiry.
|
String |
getIssuedTo()
To whom was the token issued to.
|
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 |
set(String fieldName,
Object value) |
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 |
setExpiresIn(Integer expiresIn)
The expiry time of the token, as number of seconds left until expiry.
|
Tokeninfo |
setIssuedTo(String issuedTo)
To whom was the token issued to.
|
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.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getAccessType()
null for nonepublic Tokeninfo setAccessType(String accessType)
accessType - accessType or null for nonepublic String getAudience()
null for nonepublic Tokeninfo setAudience(String audience)
audience - audience or null for nonepublic String getEmail()
null for nonepublic Tokeninfo setEmail(String email)
email - email or null for nonepublic Integer getExpiresIn()
null for nonepublic Tokeninfo setExpiresIn(Integer expiresIn)
expiresIn - expiresIn or null for nonepublic String getIssuedTo()
null for nonepublic Tokeninfo setIssuedTo(String issuedTo)
issuedTo - issuedTo or null for nonepublic String getScope()
null for nonepublic Tokeninfo setScope(String scope)
scope - scope or null for nonepublic String getUserId()
null for nonepublic Tokeninfo setUserId(String userId)
userId - userId or null for nonepublic Boolean getVerifiedEmail()
null for nonepublic Tokeninfo setVerifiedEmail(Boolean verifiedEmail)
verifiedEmail - verifiedEmail or null for nonepublic Tokeninfo set(String fieldName, Object value)
set in class GenericJsonpublic Tokeninfo clone()
clone in class GenericJson