|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
com.google.api.client.auth.jsontoken.JsonWebToken.Payload
com.google.api.client.googleapis.auth.oauth2.GoogleIdToken.Payload
public static class GoogleIdToken.Payload
Google ID token payload.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.api.client.util.GenericData |
|---|
GenericData.Flags |
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
GoogleIdToken.Payload()
Constructs a new Payload using default settings. |
|
GoogleIdToken.Payload(Clock clock)
Constructs a new Payload and uses the specified Clock. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.google.api.client.auth.jsontoken.JsonWebToken.Payload |
|---|
getAudience, getExpirationTimeSeconds, getIssuedAtTimeSeconds, getIssuer, getJwtId, getNotBeforeTimeSeconds, getPrincipal, getType, isValidTime, setAudience, setExpirationTimeSeconds, setIssuedAtTimeSeconds, setIssuer, setJwtId, setNotBeforeTimeSeconds, setPrincipal, setType |
| Methods inherited from class com.google.api.client.json.GenericJson |
|---|
clone, getFactory, setFactory, toPrettyString, toString |
| Methods inherited from class com.google.api.client.util.GenericData |
|---|
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys |
| Methods inherited from class java.util.AbstractMap |
|---|
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GoogleIdToken.Payload()
public GoogleIdToken.Payload(Clock clock)
Clock.
clock - Clock to use for expiration checks.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||