Class TokenErrorResponse (1.34.1)

public class TokenErrorResponse extends GenericJson

OAuth 2.0 parser for an error access token response as specified in Error Response.

Implementation is not thread-safe.

Inheritance

Object > java.util.AbstractMap > com.google.api.client.util.GenericData > com.google.api.client.json.GenericJson > TokenErrorResponse

Constructors

TokenErrorResponse()

public TokenErrorResponse()

Methods

clone()

public TokenErrorResponse clone()
Returns
TypeDescription
TokenErrorResponse
Overrides
com.google.api.client.json.GenericJson.clone()

getError()

public 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).

Returns
TypeDescription
String

getErrorDescription()

public final 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.

Returns
TypeDescription
String

getErrorUri()

public final 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.

Returns
TypeDescription
String

set(String fieldName, Object value)

public TokenErrorResponse set(String fieldName, Object value)
Parameters
NameDescription
fieldNameString
valueObject
Returns
TypeDescription
TokenErrorResponse
Overrides
com.google.api.client.json.GenericJson.set(java.lang.String,java.lang.Object)

setError(String error)

public 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).

Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

Parameter
NameDescription
errorString
Returns
TypeDescription
TokenErrorResponse

setErrorDescription(String errorDescription)

public 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.

Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

Parameter
NameDescription
errorDescriptionString
Returns
TypeDescription
TokenErrorResponse

setErrorUri(String errorUri)

public 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.

Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

Parameter
NameDescription
errorUriString
Returns
TypeDescription
TokenErrorResponse