public class OidcServerException extends OAuth20Exception
ACCESS_DENIED, INSUFFICIENT_SCOPE, INVALID_CLIENT, INVALID_GRANT, INVALID_REQUEST, INVALID_SCOPE, INVALID_TOKEN, SERVER_ERROR, TEMPORARILY_UNAVAILABLE, UNAUTHORIZED_CLIENT, UNSUPPORED_GRANT_TPE, UNSUPPORTED_RESPONSE_TPE
Constructor and Description |
---|
OidcServerException(java.lang.String description,
java.lang.String code,
int httpStatus) |
OidcServerException(java.lang.String description,
java.lang.String code,
int httpStatus,
java.lang.Throwable cause)
Constructs an instance of this exception with the referenced arguments.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCode()
Returns the error code associated to this exception.
|
java.lang.String |
getErrorDescription()
Returns the error description for this exception, as an English string.
|
int |
getHttpStatus()
Returns the HTTP status code associated to this exception.
|
boolean |
isComplete() |
java.lang.String |
toJSON()
Constructs an OAuth 2.0 error response from the exception state, per RFC6749 section 5.2.
|
formatSelf, getError
public OidcServerException(java.lang.String description, java.lang.String code, int httpStatus, java.lang.Throwable cause)
desription
- The error description for this exception. Can be null
if the code is nullcode
- The error code for this exception. Specify null
if the code is unknown.cause
- exception causing the problemhttpStatus
- The HTTP status code to associate to this exception.public OidcServerException(java.lang.String description, java.lang.String code, int httpStatus)
public java.lang.String getErrorDescription()
public java.lang.String getErrorCode()
public int getHttpStatus()
public boolean isComplete()
public java.lang.String toJSON()
null
.