public static class GoogleIdToken.Payload
extends com.google.api.client.auth.jsontoken.JsonWebToken.Payload
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GoogleIdToken.Payload()
Constructs a new Payload using default settings.
|
GoogleIdToken.Payload(com.google.api.client.util.Clock clock)
Constructs a new Payload and uses the specified
Clock. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessTokenHash()
Returns the hash of access token or
null for none. |
String |
getEmail()
Returns the e-mail address of the user or
null if it was not requested. |
boolean |
getEmailVerified()
Returns
true if the users e-mail address has been verified by Google. |
String |
getHostedDomain()
Returns the hosted domain name if asserted user is a domain managed user or
null for
none. |
String |
getIssuee()
Returns the client ID of issuee or
null for none. |
String |
getUserId()
Returns the obfuscated Google user id or
null for none. |
GoogleIdToken.Payload |
setAccessTokenHash(String accessTokenHash)
Sets the hash of access token or
null for none. |
GoogleIdToken.Payload |
setEmail(String email)
Sets the e-mail address of the user or
null if it was not requested. |
GoogleIdToken.Payload |
setEmailVerified(boolean emailVerified)
Sets whether the users e-mail address has been verified by Google or not.
|
GoogleIdToken.Payload |
setHostedDomain(String hostedDomain)
Sets the hosted domain name if asserted user is a domain managed user or
null for
none. |
GoogleIdToken.Payload |
setIssuee(String issuee)
Sets the client ID of issuee or
null for none. |
GoogleIdToken.Payload |
setUserId(String userId)
Sets the obfuscated Google user id or
null for none. |
getAudience, getExpirationTimeSeconds, getIssuedAtTimeSeconds, getIssuer, getJwtId, getNotBeforeTimeSeconds, getPrincipal, getType, isValidTime, setAudience, setExpirationTimeSeconds, setIssuedAtTimeSeconds, setIssuer, setJwtId, setNotBeforeTimeSeconds, setPrincipal, setTypeclone, getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic GoogleIdToken.Payload()
public GoogleIdToken.Payload(com.google.api.client.util.Clock clock)
Clock.clock - Clock to use for expiration checks.public String getUserId()
null for none.public GoogleIdToken.Payload setUserId(String userId)
null for none.public String getIssuee()
null for none.public GoogleIdToken.Payload setIssuee(String issuee)
null for none.public String getAccessTokenHash()
null for none.public GoogleIdToken.Payload setAccessTokenHash(String accessTokenHash)
null for none.public String getHostedDomain()
null for
none.public GoogleIdToken.Payload setHostedDomain(String hostedDomain)
null for
none.public String getEmail()
null if it was not requested.
Requires the "https://www.googleapis.com/auth/userinfo.email" scope.
public GoogleIdToken.Payload setEmail(String email)
null if it was not requested.
Used in conjunction with the "https://www.googleapis.com/auth/userinfo.email" scope.
public boolean getEmailVerified()
true if the users e-mail address has been verified by Google.
Requires the "https://www.googleapis.com/auth/userinfo.email" scope.
public GoogleIdToken.Payload setEmailVerified(boolean emailVerified)
Used in conjunction with the "https://www.googleapis.com/auth/userinfo.email" scope.
Copyright © 2010-2013 Google. All Rights Reserved.