@Deprecated public class OAuth2Exception extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCESS_DENIED
Deprecated.
|
static String |
DESCRIPTION
Deprecated.
|
static String |
ERROR
Deprecated.
|
static String |
INSUFFICIENT_SCOPE
Deprecated.
|
static String |
INVALID_CLIENT
Deprecated.
|
static String |
INVALID_GRANT
Deprecated.
|
static String |
INVALID_REQUEST
Deprecated.
|
static String |
INVALID_SCOPE
Deprecated.
|
static String |
INVALID_TOKEN
Deprecated.
|
static String |
REDIRECT_URI_MISMATCH
Deprecated.
|
static String |
UNAUTHORIZED_CLIENT
Deprecated.
|
static String |
UNSUPPORTED_GRANT_TYPE
Deprecated.
|
static String |
UNSUPPORTED_RESPONSE_TYPE
Deprecated.
|
static String |
URI
Deprecated.
|
| Constructor and Description |
|---|
OAuth2Exception(String msg)
Deprecated.
|
OAuth2Exception(String msg,
Throwable t)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalInformation(String key,
String value)
Deprecated.
Add some additional information with this OAuth error.
|
static OAuth2Exception |
create(String errorCode,
String errorMessage)
Deprecated.
Creates the appropriate subclass of OAuth2Exception given the errorCode.
|
Map<String,String> |
getAdditionalInformation()
Deprecated.
Get any additional information associated with this error.
|
int |
getHttpErrorCode()
Deprecated.
The HTTP error code associated with this error.
|
String |
getOAuth2ErrorCode()
Deprecated.
The OAuth2 error code.
|
String |
getSummary()
Deprecated.
|
String |
toString()
Deprecated.
|
static OAuth2Exception |
valueOf(Map<String,String> errorParams)
Deprecated.
Creates an
OAuth2Exception from a Map<String,String>. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic static final String ERROR
public static final String DESCRIPTION
public static final String URI
public static final String INVALID_REQUEST
public static final String INVALID_CLIENT
public static final String INVALID_GRANT
public static final String UNAUTHORIZED_CLIENT
public static final String UNSUPPORTED_GRANT_TYPE
public static final String INVALID_SCOPE
public static final String INSUFFICIENT_SCOPE
public static final String INVALID_TOKEN
public static final String REDIRECT_URI_MISMATCH
public static final String UNSUPPORTED_RESPONSE_TYPE
public static final String ACCESS_DENIED
public OAuth2Exception(String msg)
public String getOAuth2ErrorCode()
public int getHttpErrorCode()
public Map<String,String> getAdditionalInformation()
public void addAdditionalInformation(String key, String value)
key - The key.value - The value.public static OAuth2Exception create(String errorCode, String errorMessage)
errorCode - errorMessage - public static OAuth2Exception valueOf(Map<String,String> errorParams)
OAuth2Exception from a Map<String,String>.errorParams - public String getSummary()
Copyright © 2021. All rights reserved.