public class Oauth2ErrorResponse
extends java.lang.Object
| Constructor and Description |
|---|
Oauth2ErrorResponse()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getError() |
java.lang.String |
getErrorDescription() |
java.lang.String |
getErrorUri() |
java.lang.String |
getState()
Althought the state is required if the Authorization Request included the state parameter.
|
static Oauth2ErrorResponse |
of(ErrorResponse errorResponse)
Instantiates a
Oauth2ErrorResponse from a ErrorResponse. |
void |
setError(java.lang.String error) |
void |
setErrorDescription(java.lang.String errorDescription) |
void |
setErrorUri(java.lang.String errorUri) |
void |
setState(java.lang.String state) |
java.lang.String |
toString() |
@Nullable public java.lang.String getState()
public void setState(@Nullable
java.lang.String state)
state - OAuth 2.0 state value.@Nonnull public java.lang.String getError()
public void setError(java.lang.String error)
error - The error code.@Nullable public java.lang.String getErrorDescription()
public void setErrorDescription(@Nullable
java.lang.String errorDescription)
errorDescription - Human-readable ASCII [USASCII] text providing additional information about the errorCode.@Nullable public java.lang.String getErrorUri()
public void setErrorUri(@Nullable
java.lang.String errorUri)
errorUri - URI identifying a human-readable web page with information about the errorCode.public java.lang.String toString()
toString in class java.lang.Objectpublic static Oauth2ErrorResponse of(ErrorResponse errorResponse)
Oauth2ErrorResponse from a ErrorResponse.errorResponse - Error ResponseOauth2ErrorResponse