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.FlagsNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringError 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 StringHuman-readable text providing additional information, used to assist the client developer in understanding the error that occurred ornullfor none.private StringURI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error ornullfor none. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()final StringgetError()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 StringReturns the human-readable text providing additional information, used to assist the client developer in understanding the error that occurred ornullfor none.final StringReturns 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 ornullfor 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 ornullfor 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 ornullfor none.Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toStringMethods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysMethods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 ornullfor 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 ornullfor 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 ornullfor none. -
setErrorDescription
Sets the human-readable text providing additional information, used to assist the client developer in understanding the error that occurred ornullfor 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 ornullfor 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 ornullfor none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
set
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-