public abstract class AuthenticationException extends ErrorResponse.ErrorResponseException implements AuthenticationError
Authenticator
,
Serialized FormErrorResponse.ErrorResponseException
ERROR_CODE_SERIALIZATION_NAME, ERROR_DESCRIPTION_SERIALIZATION_NAME, ERROR_URI_SERIALIZATION_NAME, INVALID_CLIENT, INVALID_REQUEST, INVALID_TOKEN, SERVER_ERROR, TEMPORARY_UNAVAILABLE
Constructor and Description |
---|
AuthenticationException(String errorCode,
String errorDescription)
Constructor
|
AuthenticationException(String errorCode,
String errorDescription,
int httpStatus)
Constructor
|
AuthenticationException(String errorCode,
String errorDescription,
String errorURI,
int httpStatus)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getScheme()
Get authentication scheme
|
void |
setScheme(String scheme)
Set authentication scheme
|
getErrorCode, getErrorDescription, getErrorURI, getHttpStatus
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getErrorCode, getErrorDescription, getErrorURI, getHttpStatus
public AuthenticationException(String errorCode, String errorDescription)
errorCode
- Error codeerrorDescription
- Error description, i.e. a human-readable explanation of this errorpublic AuthenticationException(String errorCode, String errorDescription, int httpStatus)
errorCode
- Error codeerrorDescription
- Error description, i.e. a human-readable explanation of this errorhttpStatus
- HTTP status code to represent error as a HTTP responsepublic AuthenticationException(String errorCode, String errorDescription, String errorURI, int httpStatus)
errorCode
- Error codeerrorDescription
- Error description, i.e. a human-readable explanation of this errorerrorURI
- Error URI that leads to further details about this errorhttpStatus
- HTTP status code to represent error as a HTTP responsepublic String getScheme()
AuthenticationError
getScheme
in interface AuthenticationError
public void setScheme(String scheme)
scheme
- the scheme to setCopyright © 2019 The Holon Platform. All rights reserved.