public class OAuth2Error
extends java.lang.Object
implements java.io.Serializable
At a minimum, an error response will contain an error code. The error code may be one of the standard codes defined by the specification, or a new code defined in the OAuth Extensions Error Registry, for cases where protocol extensions require additional error code(s) above the standard codes.
OAuth2ErrorCodes,
Section 11.4 OAuth Extensions Error Registry,
Serialized Form| Constructor and Description |
|---|
OAuth2Error(java.lang.String errorCode)
Constructs an
OAuth2Error using the provided parameters. |
OAuth2Error(java.lang.String errorCode,
java.lang.String description,
java.lang.String uri)
Constructs an
OAuth2Error using the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Returns the error description.
|
java.lang.String |
getErrorCode()
Returns the error code.
|
java.lang.String |
getUri()
Returns the error uri.
|
java.lang.String |
toString() |
public OAuth2Error(java.lang.String errorCode)
OAuth2Error using the provided parameters.errorCode - the error codepublic OAuth2Error(java.lang.String errorCode,
java.lang.String description,
java.lang.String uri)
OAuth2Error using the provided parameters.errorCode - the error codedescription - the error descriptionuri - the error uripublic final java.lang.String getErrorCode()
public final java.lang.String getDescription()
public final java.lang.String getUri()
public java.lang.String toString()
toString in class java.lang.Object