|
||||||||||
| 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.oauth2.TokenResponse
com.google.api.client.auth.openidconnect.IdTokenResponse
public class IdTokenResponse
OAuth ID Connect JSON model for a successful access token response as specified in OpenID Connect Session Management 1.0.
Implementation is not thread-safe. Sample usage:
static JsonWebSignature executeIdToken(TokenRequest tokenRequest) throws IOException {
IdTokenResponse idTokenResponse = IdTokenResponse.execute(tokenRequest);
return idTokenResponse.parseIdToken();
}
| Nested Class Summary |
|---|
| 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 | |
|---|---|
IdTokenResponse()
|
|
| Method Summary | |
|---|---|
static IdTokenResponse |
execute(TokenRequest tokenRequest)
Executes the given ID token request, and returns the parsed ID token response. |
String |
getIdToken()
Returns the ID token. |
JsonWebSignature |
parseIdToken()
Parses using JsonWebSignature.parse(JsonFactory, String) based on the
JSON factory and ID token. |
IdTokenResponse |
setAccessToken(String accessToken)
Sets the access token issued by the authorization server. |
IdTokenResponse |
setExpiresInSeconds(Long expiresIn)
Sets the lifetime in seconds of the access token (for example 3600 for an hour) or null
for none. |
IdTokenResponse |
setIdToken(String idToken)
Sets the ID token. |
IdTokenResponse |
setRefreshToken(String refreshToken)
Sets the refresh token which can be used to obtain new access tokens using the same authorization grant or null for none. |
IdTokenResponse |
setScope(String scope)
Sets the scope of the access token or null for none. |
IdTokenResponse |
setTokenType(String tokenType)
Sets the token type (as specified in Access Token Types). |
| Methods inherited from class com.google.api.client.auth.oauth2.TokenResponse |
|---|
getAccessToken, getExpiresInSeconds, getRefreshToken, getScope, getTokenType |
| 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, 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 IdTokenResponse()
| Method Detail |
|---|
public final String getIdToken()
public IdTokenResponse setIdToken(String idToken)
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public IdTokenResponse setAccessToken(String accessToken)
TokenResponseOverriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setAccessToken in class TokenResponsepublic IdTokenResponse setTokenType(String tokenType)
TokenResponseOverriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setTokenType in class TokenResponsepublic IdTokenResponse setExpiresInSeconds(Long expiresIn)
TokenResponsenull
for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setExpiresInSeconds in class TokenResponsepublic IdTokenResponse setRefreshToken(String refreshToken)
TokenResponsenull for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setRefreshToken in class TokenResponsepublic IdTokenResponse setScope(String scope)
TokenResponsenull for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setScope in class TokenResponse
public JsonWebSignature parseIdToken()
throws IOException
JsonWebSignature.parse(JsonFactory, String) based on the
JSON factory and ID token.
IOException
public static IdTokenResponse execute(TokenRequest tokenRequest)
throws IOException
tokenRequest - token request
TokenResponseException - for an error response
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||