Class TokenErrorResponse
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
com.google.api.client.auth.oauth2.TokenErrorResponse
public class TokenErrorResponse
extends com.google.api.client.json.GenericJson
OAuth 2.0 parser for an error access token response as specified in Error Response.
Implementation is not thread-safe.
- Since:
- 1.7
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Error code ("invalid_request"
,"invalid_client"
,"invalid_grant"
,"unauthorized_client"
,"unsupported_grant_type"
,"invalid_scope"
, or an extension error code as specified in Defining Additional Error Codes).private String
Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred ornull
for none.private String
URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error ornull
for none. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
final String
getError()
Returns the error code ("invalid_request"
,"invalid_client"
,"invalid_grant"
,"unauthorized_client"
,"unsupported_grant_type"
,"invalid_scope"
, or an extension error code as specified in Defining Additional Error Codes).final String
Returns the human-readable text providing additional information, used to assist the client developer in understanding the error that occurred ornull
for none.final String
Returns the URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error ornull
for none.Sets the error code ("invalid_request"
,"invalid_client"
,"invalid_grant"
,"unauthorized_client"
,"unsupported_grant_type"
,"invalid_scope"
, or an extension error code as specified in Defining Additional Error Codes).setErrorDescription
(String errorDescription) Sets the human-readable text providing additional information, used to assist the client developer in understanding the error that occurred ornull
for none.setErrorUri
(String errorUri) Sets the URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error ornull
for none.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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
error
Error code ("invalid_request"
,"invalid_client"
,"invalid_grant"
,"unauthorized_client"
,"unsupported_grant_type"
,"invalid_scope"
, or an extension error code as specified in Defining Additional Error Codes). -
errorDescription
Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred ornull
for none. -
errorUri
URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error ornull
for none.
-
-
Constructor Details
-
TokenErrorResponse
public TokenErrorResponse()
-
-
Method Details
-
getError
Returns the error code ("invalid_request"
,"invalid_client"
,"invalid_grant"
,"unauthorized_client"
,"unsupported_grant_type"
,"invalid_scope"
, or an extension error code as specified in Defining Additional Error Codes). -
setError
Sets the error code ("invalid_request"
,"invalid_client"
,"invalid_grant"
,"unauthorized_client"
,"unsupported_grant_type"
,"invalid_scope"
, or an extension error code as specified in Defining Additional Error Codes).Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getErrorDescription
Returns the human-readable text providing additional information, used to assist the client developer in understanding the error that occurred ornull
for none. -
setErrorDescription
Sets the human-readable text providing additional information, used to assist the client developer in understanding the error that occurred ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getErrorUri
Returns the URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error ornull
for none. -
setErrorUri
Sets the URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
set
- Overrides:
set
in classcom.google.api.client.json.GenericJson
-
clone
- Overrides:
clone
in classcom.google.api.client.json.GenericJson
-