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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Tokeninfo() |
Modifier and Type | Method and Description |
---|---|
Tokeninfo |
clone() |
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 |
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 |
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 |
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, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public 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 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.GenericJson
public Tokeninfo clone()
clone
in class com.google.api.client.json.GenericJson