public class OAuth2AuthenticationException
extends org.springframework.security.core.AuthenticationException
Authentication errors.
There are a number of scenarios where an error may occur, for example:
| Constructor and Description |
|---|
OAuth2AuthenticationException(OAuth2Error error)
Constructs an
OAuth2AuthenticationException using the provided parameters. |
OAuth2AuthenticationException(OAuth2Error error,
java.lang.String message)
Constructs an
OAuth2AuthenticationException using the provided parameters. |
OAuth2AuthenticationException(OAuth2Error error,
java.lang.String message,
java.lang.Throwable cause)
Constructs an
OAuth2AuthenticationException using the provided parameters. |
OAuth2AuthenticationException(OAuth2Error error,
java.lang.Throwable cause)
Constructs an
OAuth2AuthenticationException using the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
OAuth2Error |
getError()
Returns the
OAuth 2.0 Error. |
public OAuth2AuthenticationException(OAuth2Error error)
OAuth2AuthenticationException using the provided parameters.error - the OAuth 2.0 Errorpublic OAuth2AuthenticationException(OAuth2Error error, java.lang.Throwable cause)
OAuth2AuthenticationException using the provided parameters.error - the OAuth 2.0 Errorcause - the root causepublic OAuth2AuthenticationException(OAuth2Error error, java.lang.String message)
OAuth2AuthenticationException using the provided parameters.error - the OAuth 2.0 Errormessage - the detail messagepublic OAuth2AuthenticationException(OAuth2Error error, java.lang.String message, java.lang.Throwable cause)
OAuth2AuthenticationException using the provided parameters.error - the OAuth 2.0 Errormessage - the detail messagecause - the root causepublic OAuth2Error getError()
OAuth 2.0 Error.OAuth2Error