Class IdToken.Payload
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.client.json.webtoken.JsonWebToken.Payload
-
- com.google.api.client.auth.openidconnect.IdToken.Payload
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.util.Map<java.lang.String,java.lang.Object>
- Enclosing class:
- IdToken
@Beta public static class IdToken.Payload extends com.google.api.client.json.webtoken.JsonWebToken.Payload
Beta
ID token payload.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
accessTokenHash
Access token hash value ornull
for none.private java.lang.Long
authorizationTimeSeconds
Time (in seconds) of end-user authorization ornull
for none.private java.lang.String
authorizedParty
Authorized party ornull
for none.private java.lang.String
classReference
Authentication context class reference ornull
for none.private java.util.List<java.lang.String>
methodsReferences
Authentication methods references ornull
for none.private java.lang.String
nonce
Value used to associate a client session with an ID token ornull
for none.
-
Constructor Summary
Constructors Constructor Description Payload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdToken.Payload
clone()
java.lang.String
getAccessTokenHash()
Returns the access token hash value ornull
for none.java.lang.Long
getAuthorizationTimeSeconds()
Returns the time (in seconds) of end-user authorization ornull
for none.java.lang.String
getAuthorizedParty()
Returns the authorized party ornull
for none.java.lang.String
getClassReference()
Returns the authentication context class reference ornull
for none.java.util.List<java.lang.String>
getMethodsReferences()
Returns the authentication methods references ornull
for none.java.lang.String
getNonce()
Returns the value used to associate a client session with an ID token ornull
for none.IdToken.Payload
set(java.lang.String fieldName, java.lang.Object value)
IdToken.Payload
setAccessTokenHash(java.lang.String accessTokenHash)
Sets the access token hash value ornull
for none.IdToken.Payload
setAudience(java.lang.Object audience)
IdToken.Payload
setAuthorizationTimeSeconds(java.lang.Long authorizationTimeSeconds)
Sets the time (in seconds) of end-user authorization ornull
for none.IdToken.Payload
setAuthorizedParty(java.lang.String authorizedParty)
Sets the authorized party ornull
for none.IdToken.Payload
setClassReference(java.lang.String classReference)
Sets the authentication context class reference ornull
for none.IdToken.Payload
setExpirationTimeSeconds(java.lang.Long expirationTimeSeconds)
IdToken.Payload
setIssuedAtTimeSeconds(java.lang.Long issuedAtTimeSeconds)
IdToken.Payload
setIssuer(java.lang.String issuer)
IdToken.Payload
setJwtId(java.lang.String jwtId)
IdToken.Payload
setMethodsReferences(java.util.List<java.lang.String> methodsReferences)
Sets the authentication methods references ornull
for none.IdToken.Payload
setNonce(java.lang.String nonce)
Sets the value used to associate a client session with an ID token ornull
for none.IdToken.Payload
setNotBeforeTimeSeconds(java.lang.Long notBeforeTimeSeconds)
IdToken.Payload
setSubject(java.lang.String subject)
IdToken.Payload
setType(java.lang.String type)
-
Methods inherited from class com.google.api.client.json.webtoken.JsonWebToken.Payload
getAudience, getAudienceAsList, getExpirationTimeSeconds, getIssuedAtTimeSeconds, getIssuer, getJwtId, getNotBeforeTimeSeconds, getSubject, getType
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
-
-
-
Field Detail
-
authorizationTimeSeconds
private java.lang.Long authorizationTimeSeconds
Time (in seconds) of end-user authorization ornull
for none.
-
authorizedParty
private java.lang.String authorizedParty
Authorized party ornull
for none.
-
nonce
private java.lang.String nonce
Value used to associate a client session with an ID token ornull
for none.
-
accessTokenHash
private java.lang.String accessTokenHash
Access token hash value ornull
for none.
-
classReference
private java.lang.String classReference
Authentication context class reference ornull
for none.
-
methodsReferences
private java.util.List<java.lang.String> methodsReferences
Authentication methods references ornull
for none.
-
-
Method Detail
-
getAuthorizationTimeSeconds
public final java.lang.Long getAuthorizationTimeSeconds()
Returns the time (in seconds) of end-user authorization ornull
for none.
-
setAuthorizationTimeSeconds
public IdToken.Payload setAuthorizationTimeSeconds(java.lang.Long authorizationTimeSeconds)
Sets the time (in seconds) of end-user authorization ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getAuthorizedParty
public final java.lang.String getAuthorizedParty()
Returns the authorized party ornull
for none.Upgrade warning: in prior version 1.15 this method returned an
Object
, but starting with version 1.16 it returns aString
.
-
setAuthorizedParty
public IdToken.Payload setAuthorizedParty(java.lang.String authorizedParty)
Sets the authorized party ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
Upgrade warning: in prior version 1.15 the parameter was an
Object
, but starting with version 1.16 the parameter is aString
.
-
getNonce
public final java.lang.String getNonce()
Returns the value used to associate a client session with an ID token ornull
for none.- Since:
- 1.16
-
setNonce
public IdToken.Payload setNonce(java.lang.String nonce)
Sets the value used to associate a client session with an ID token ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
- Since:
- 1.16
-
getAccessTokenHash
public final java.lang.String getAccessTokenHash()
Returns the access token hash value ornull
for none.- Since:
- 1.16
-
setAccessTokenHash
public IdToken.Payload setAccessTokenHash(java.lang.String accessTokenHash)
Sets the access token hash value ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
- Since:
- 1.16
-
getClassReference
public final java.lang.String getClassReference()
Returns the authentication context class reference ornull
for none.- Since:
- 1.16
-
setClassReference
public IdToken.Payload setClassReference(java.lang.String classReference)
Sets the authentication context class reference ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
- Since:
- 1.16
-
getMethodsReferences
public final java.util.List<java.lang.String> getMethodsReferences()
Returns the authentication methods references ornull
for none.- Since:
- 1.16
-
setMethodsReferences
public IdToken.Payload setMethodsReferences(java.util.List<java.lang.String> methodsReferences)
Sets the authentication methods references ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
- Since:
- 1.16
-
setExpirationTimeSeconds
public IdToken.Payload setExpirationTimeSeconds(java.lang.Long expirationTimeSeconds)
- Overrides:
setExpirationTimeSeconds
in classcom.google.api.client.json.webtoken.JsonWebToken.Payload
-
setNotBeforeTimeSeconds
public IdToken.Payload setNotBeforeTimeSeconds(java.lang.Long notBeforeTimeSeconds)
- Overrides:
setNotBeforeTimeSeconds
in classcom.google.api.client.json.webtoken.JsonWebToken.Payload
-
setIssuedAtTimeSeconds
public IdToken.Payload setIssuedAtTimeSeconds(java.lang.Long issuedAtTimeSeconds)
- Overrides:
setIssuedAtTimeSeconds
in classcom.google.api.client.json.webtoken.JsonWebToken.Payload
-
setIssuer
public IdToken.Payload setIssuer(java.lang.String issuer)
- Overrides:
setIssuer
in classcom.google.api.client.json.webtoken.JsonWebToken.Payload
-
setAudience
public IdToken.Payload setAudience(java.lang.Object audience)
- Overrides:
setAudience
in classcom.google.api.client.json.webtoken.JsonWebToken.Payload
-
setJwtId
public IdToken.Payload setJwtId(java.lang.String jwtId)
- Overrides:
setJwtId
in classcom.google.api.client.json.webtoken.JsonWebToken.Payload
-
setType
public IdToken.Payload setType(java.lang.String type)
- Overrides:
setType
in classcom.google.api.client.json.webtoken.JsonWebToken.Payload
-
setSubject
public IdToken.Payload setSubject(java.lang.String subject)
- Overrides:
setSubject
in classcom.google.api.client.json.webtoken.JsonWebToken.Payload
-
set
public IdToken.Payload set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
set
in classcom.google.api.client.json.webtoken.JsonWebToken.Payload
-
clone
public IdToken.Payload clone()
- Overrides:
clone
in classcom.google.api.client.json.webtoken.JsonWebToken.Payload
-
-