public static class GoogleIdToken.Payload extends IdToken.Payload
Beta
Google ID token payload.
Inheritance
Object >
java.util.AbstractMap >
com.google.api.client.util.GenericData >
com.google.api.client.json.GenericJson >
JsonWebToken.Payload >
com.google.api.client.auth.openidconnect.IdToken.Payload >
GoogleIdToken.Payload
Inherited Members
com.google.api.client.auth.openidconnect.IdToken.Payload.clone()
com.google.api.client.auth.openidconnect.IdToken.Payload.getAccessTokenHash()
com.google.api.client.auth.openidconnect.IdToken.Payload.getAuthorizationTimeSeconds()
com.google.api.client.auth.openidconnect.IdToken.Payload.getAuthorizedParty()
com.google.api.client.auth.openidconnect.IdToken.Payload.getClassReference()
com.google.api.client.auth.openidconnect.IdToken.Payload.getMethodsReferences()
com.google.api.client.auth.openidconnect.IdToken.Payload.getNonce()
com.google.api.client.auth.openidconnect.IdToken.Payload.set(java.lang.String,java.lang.Object)
com.google.api.client.auth.openidconnect.IdToken.Payload.setAccessTokenHash(java.lang.String)
com.google.api.client.auth.openidconnect.IdToken.Payload.setAudience(java.lang.Object)
com.google.api.client.auth.openidconnect.IdToken.Payload.setAuthorizationTimeSeconds(java.lang.Long)
com.google.api.client.auth.openidconnect.IdToken.Payload.setAuthorizedParty(java.lang.String)
com.google.api.client.auth.openidconnect.IdToken.Payload.setClassReference(java.lang.String)
com.google.api.client.auth.openidconnect.IdToken.Payload.setExpirationTimeSeconds(java.lang.Long)
com.google.api.client.auth.openidconnect.IdToken.Payload.setIssuedAtTimeSeconds(java.lang.Long)
com.google.api.client.auth.openidconnect.IdToken.Payload.setIssuer(java.lang.String)
com.google.api.client.auth.openidconnect.IdToken.Payload.setJwtId(java.lang.String)
com.google.api.client.auth.openidconnect.IdToken.Payload.setMethodsReferences(java.util.List<java.lang.String>)
com.google.api.client.auth.openidconnect.IdToken.Payload.setNonce(java.lang.String)
com.google.api.client.auth.openidconnect.IdToken.Payload.setNotBeforeTimeSeconds(java.lang.Long)
com.google.api.client.auth.openidconnect.IdToken.Payload.setSubject(java.lang.String)
com.google.api.client.auth.openidconnect.IdToken.Payload.setType(java.lang.String)
com.google.api.client.json.GenericJson.getFactory()
com.google.api.client.json.GenericJson.setFactory(com.google.api.client.json.JsonFactory)
com.google.api.client.json.GenericJson.toPrettyString()
com.google.api.client.json.GenericJson.toString()
com.google.api.client.json.webtoken.JsonWebToken.Payload.getAudience()
com.google.api.client.json.webtoken.JsonWebToken.Payload.getAudienceAsList()
com.google.api.client.json.webtoken.JsonWebToken.Payload.getExpirationTimeSeconds()
com.google.api.client.json.webtoken.JsonWebToken.Payload.getIssuedAtTimeSeconds()
com.google.api.client.json.webtoken.JsonWebToken.Payload.getIssuer()
com.google.api.client.json.webtoken.JsonWebToken.Payload.getJwtId()
com.google.api.client.json.webtoken.JsonWebToken.Payload.getNotBeforeTimeSeconds()
com.google.api.client.json.webtoken.JsonWebToken.Payload.getSubject()
com.google.api.client.json.webtoken.JsonWebToken.Payload.getType()
com.google.api.client.util.GenericData.entrySet()
com.google.api.client.util.GenericData.equals(java.lang.Object)
com.google.api.client.util.GenericData.get(java.lang.Object)
com.google.api.client.util.GenericData.getClassInfo()
com.google.api.client.util.GenericData.getUnknownKeys()
com.google.api.client.util.GenericData.hashCode()
com.google.api.client.util.GenericData.put(java.lang.String,java.lang.Object)
com.google.api.client.util.GenericData.putAll(java.util.Map<? extends java.lang.String,?>)
com.google.api.client.util.GenericData.remove(java.lang.Object)
com.google.api.client.util.GenericData.setUnknownKeys(java.util.Map<java.lang.String,java.lang.Object>)
Constructors
Payload()
Methods
clone()
public GoogleIdToken.Payload clone()
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.clone()
getEmail()
Returns |
Type |
Description |
String |
|
getEmailVerified()
public Boolean getEmailVerified()
getHostedDomain()
public String getHostedDomain()
Returns the hosted domain name if asserted user is a domain managed user or null
for
none.
Returns |
Type |
Description |
String |
|
getIssuee() (deprecated)
public String getIssuee()
Deprecated. (scheduled to be removed in 1.18) Use #getAuthorizedParty() instead.
Returns the client ID of issuee or null
for none.
Returns |
Type |
Description |
String |
|
getUserId() (deprecated)
public String getUserId()
Deprecated. (scheduled to be removed in 1.18) Use #getSubject() instead.
Returns the obfuscated Google user id or null
for none.
Returns |
Type |
Description |
String |
|
set(String fieldName, Object value)
public GoogleIdToken.Payload set(String fieldName, Object value)
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.set(java.lang.String,java.lang.Object)
setAccessTokenHash(String accessTokenHash)
public GoogleIdToken.Payload setAccessTokenHash(String accessTokenHash)
Parameter |
Name |
Description |
accessTokenHash |
String
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setAccessTokenHash(java.lang.String)
setAudience(Object audience)
public GoogleIdToken.Payload setAudience(Object audience)
Parameter |
Name |
Description |
audience |
Object
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setAudience(java.lang.Object)
setAuthorizationTimeSeconds(Long authorizationTimeSeconds)
public GoogleIdToken.Payload setAuthorizationTimeSeconds(Long authorizationTimeSeconds)
Parameter |
Name |
Description |
authorizationTimeSeconds |
Long
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setAuthorizationTimeSeconds(java.lang.Long)
setAuthorizedParty(String authorizedParty)
public GoogleIdToken.Payload setAuthorizedParty(String authorizedParty)
Parameter |
Name |
Description |
authorizedParty |
String
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setAuthorizedParty(java.lang.String)
setClassReference(String classReference)
public GoogleIdToken.Payload setClassReference(String classReference)
Parameter |
Name |
Description |
classReference |
String
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setClassReference(java.lang.String)
setEmail(String email)
public GoogleIdToken.Payload setEmail(String email)
Parameter |
Name |
Description |
email |
String
|
setEmailVerified(Boolean emailVerified)
public GoogleIdToken.Payload setEmailVerified(Boolean emailVerified)
Parameter |
Name |
Description |
emailVerified |
Boolean
|
setExpirationTimeSeconds(Long expirationTimeSeconds)
public GoogleIdToken.Payload setExpirationTimeSeconds(Long expirationTimeSeconds)
Parameter |
Name |
Description |
expirationTimeSeconds |
Long
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setExpirationTimeSeconds(java.lang.Long)
setHostedDomain(String hostedDomain)
public GoogleIdToken.Payload setHostedDomain(String hostedDomain)
Sets the hosted domain name if asserted user is a domain managed user or null
for
none.
Parameter |
Name |
Description |
hostedDomain |
String
|
setIssuedAtTimeSeconds(Long issuedAtTimeSeconds)
public GoogleIdToken.Payload setIssuedAtTimeSeconds(Long issuedAtTimeSeconds)
Parameter |
Name |
Description |
issuedAtTimeSeconds |
Long
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setIssuedAtTimeSeconds(java.lang.Long)
setIssuee(String issuee) (deprecated)
public GoogleIdToken.Payload setIssuee(String issuee)
Parameter |
Name |
Description |
issuee |
String
|
setIssuer(String issuer)
public GoogleIdToken.Payload setIssuer(String issuer)
Parameter |
Name |
Description |
issuer |
String
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setIssuer(java.lang.String)
setJwtId(String jwtId)
public GoogleIdToken.Payload setJwtId(String jwtId)
Parameter |
Name |
Description |
jwtId |
String
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setJwtId(java.lang.String)
setMethodsReferences(List<String> methodsReferences)
public GoogleIdToken.Payload setMethodsReferences(List<String> methodsReferences)
Parameter |
Name |
Description |
methodsReferences |
List<String>
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setMethodsReferences(java.util.List<java.lang.String>)
setNonce(String nonce)
public GoogleIdToken.Payload setNonce(String nonce)
Parameter |
Name |
Description |
nonce |
String
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setNonce(java.lang.String)
setNotBeforeTimeSeconds(Long notBeforeTimeSeconds)
public GoogleIdToken.Payload setNotBeforeTimeSeconds(Long notBeforeTimeSeconds)
Parameter |
Name |
Description |
notBeforeTimeSeconds |
Long
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setNotBeforeTimeSeconds(java.lang.Long)
setSubject(String subject)
public GoogleIdToken.Payload setSubject(String subject)
Parameter |
Name |
Description |
subject |
String
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setSubject(java.lang.String)
setType(String type)
public GoogleIdToken.Payload setType(String type)
Parameter |
Name |
Description |
type |
String
|
Overrides
com.google.api.client.auth.openidconnect.IdToken.Payload.setType(java.lang.String)
setUserId(String userId) (deprecated)
public GoogleIdToken.Payload setUserId(String userId)
Deprecated. (scheduled to be removed in 1.18) Use #setSubject(String) instead.
Sets the obfuscated Google user id or null
for none.
Parameter |
Name |
Description |
userId |
String
|