public class OAuth2AuthenticationException extends AuthenticationException
ATTRIBUTE_CREATE_DENIED, BAD_CREDENTIALS, CREDENTIALS_EXPIRED, INTERNAL_ERROR, INVALID_CLIENT, INVALID_IDENTITY_PROVIDER, INVALID_REQUEST, INVALID_RESOURCE, OAUTH2_ERROR, RESOURCE_CONFLICT, USER_DISABLED, USER_LOCKED
Constructor and Description |
---|
OAuth2AuthenticationException(java.lang.String message,
java.lang.String preservedState)
Constructs an
OAuth2AuthenticationException with the specified
message and no root cause. |
OAuth2AuthenticationException(java.lang.String message,
java.lang.Throwable cause,
java.lang.String preservedState)
Constructs an
OAuth2AuthenticationException with the specified
message and root cause. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCode()
Retrieve the error code associated with this exception.
|
java.lang.String |
getPreservedState()
Retrieves the state preserved during the OAuth 2 flow.
|
addAdditionalInformation, getAdditionalInformation
public OAuth2AuthenticationException(java.lang.String message, java.lang.String preservedState)
OAuth2AuthenticationException
with the specified
message and no root cause.message
- the detail messagepreservedState
- the state preserved during the OAuth 2 flow or
null
if not available.public OAuth2AuthenticationException(java.lang.String message, java.lang.Throwable cause, java.lang.String preservedState)
OAuth2AuthenticationException
with the specified
message and root cause.message
- the detail messagecause
- the root causepreservedState
- the state preserved during the OAuth 2 flow or
null
if not available.public java.lang.String getPreservedState()
null
if
not available.public java.lang.String getErrorCode()
getErrorCode
in class AuthenticationException