public class TokenErrorResponse extends GenericJson
Implementation is not thread-safe.
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
TokenErrorResponse() |
Modifier and Type | Method and Description |
---|---|
TokenErrorResponse |
clone() |
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). |
String |
getErrorDescription()
Returns the human-readable text providing additional information, used to assist the client
developer in understanding the error that occurred or
null for none. |
String |
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 or
null for
none. |
TokenErrorResponse |
set(String fieldName,
Object value) |
TokenErrorResponse |
setError(String error)
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). |
TokenErrorResponse |
setErrorDescription(String errorDescription)
Sets the human-readable text providing additional information, used to assist the client
developer in understanding the error that occurred or
null for none. |
TokenErrorResponse |
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 or
null for
none. |
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public final String getError()
"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).public TokenErrorResponse setError(String error)
"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.
public final String getErrorDescription()
null
for none.public TokenErrorResponse setErrorDescription(String errorDescription)
null
for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final String getErrorUri()
null
for
none.public TokenErrorResponse setErrorUri(String errorUri)
null
for
none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public TokenErrorResponse set(String fieldName, Object value)
set
in class GenericJson
public TokenErrorResponse clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.