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-api-java-client/wiki/Json
Upgrade warning: starting with version 1.12 getResponseHeaders()
is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Tokeninfo() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getAccessType()
null
.public Tokeninfo setAccessType(String accessType)
null
.public String getAudience()
null
.public Tokeninfo setAudience(String audience)
null
.public String getEmail()
null
.public Tokeninfo setEmail(String email)
null
.public Boolean getEmailVerified()
null
.public Tokeninfo setEmailVerified(Boolean emailVerified)
null
.public Integer getExpiresIn()
null
.public Tokeninfo setExpiresIn(Integer expiresIn)
null
.public Integer getIssuedAt()
null
.public Tokeninfo setIssuedAt(Integer issuedAt)
null
.public String getIssuedTo()
null
.public Tokeninfo setIssuedTo(String issuedTo)
null
.public String getIssuer()
null
.public Tokeninfo setIssuer(String issuer)
null
.public String getNonce()
null
.public String getScope()
null
.public Tokeninfo setScope(String scope)
null
.public String getUserId()
null
.public Tokeninfo setUserId(String userId)
null
.public Boolean getVerifiedEmail()
null
.