public class GoogleTokenResponse
extends com.google.api.client.auth.oauth2.TokenResponse
This response object is the result of GoogleAuthorizationCodeTokenRequest.execute() and
GoogleRefreshTokenRequest.execute(). Use parseIdToken() to parse the
GoogleIdToken and then call GoogleIdTokenVerifier.verify(GoogleIdToken).
Implementation is not thread-safe.
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
GoogleTokenResponse() |
| Modifier and Type | Method and Description |
|---|---|
GoogleTokenResponse |
clone() |
java.lang.String |
getIdToken()
Beta Returns the ID token. |
GoogleIdToken |
parseIdToken()
|
GoogleTokenResponse |
set(java.lang.String fieldName,
java.lang.Object value) |
GoogleTokenResponse |
setAccessToken(java.lang.String accessToken) |
GoogleTokenResponse |
setExpiresInSeconds(java.lang.Long expiresIn) |
GoogleTokenResponse |
setIdToken(java.lang.String idToken)
Beta Sets the ID token. |
GoogleTokenResponse |
setRefreshToken(java.lang.String refreshToken) |
GoogleTokenResponse |
setScope(java.lang.String scope) |
GoogleTokenResponse |
setTokenType(java.lang.String tokenType) |
getAccessToken, getExpiresInSeconds, getRefreshToken, getScope, getTokenTypegetFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic GoogleTokenResponse setAccessToken(java.lang.String accessToken)
setAccessToken in class com.google.api.client.auth.oauth2.TokenResponsepublic GoogleTokenResponse setTokenType(java.lang.String tokenType)
setTokenType in class com.google.api.client.auth.oauth2.TokenResponsepublic GoogleTokenResponse setExpiresInSeconds(java.lang.Long expiresIn)
setExpiresInSeconds in class com.google.api.client.auth.oauth2.TokenResponsepublic GoogleTokenResponse setRefreshToken(java.lang.String refreshToken)
setRefreshToken in class com.google.api.client.auth.oauth2.TokenResponsepublic GoogleTokenResponse setScope(java.lang.String scope)
setScope in class com.google.api.client.auth.oauth2.TokenResponse@Beta public final java.lang.String getIdToken()
Beta @Beta public GoogleTokenResponse setIdToken(java.lang.String idToken)
Beta Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
@Beta public GoogleIdToken parseIdToken() throws java.io.IOException
java.io.IOExceptionpublic GoogleTokenResponse set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.auth.oauth2.TokenResponsepublic GoogleTokenResponse clone()
clone in class com.google.api.client.auth.oauth2.TokenResponseCopyright © 2010-2018 Google. All Rights Reserved.