Class OAuth2AuthorizationCodeRequestAuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.core.AuthenticationException
org.springframework.security.oauth2.core.OAuth2AuthenticationException
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeRequestAuthenticationException
- All Implemented Interfaces:
Serializable
public class OAuth2AuthorizationCodeRequestAuthenticationException
extends org.springframework.security.oauth2.core.OAuth2AuthenticationException
This exception is thrown by
OAuth2AuthorizationCodeRequestAuthenticationProvider
when an attempt to
authenticate the OAuth 2.0 Authorization Request (or Consent) fails.-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2AuthorizationCodeRequestAuthenticationException
(org.springframework.security.oauth2.core.OAuth2Error error, Throwable cause, OAuth2AuthorizationCodeRequestAuthenticationToken authorizationCodeRequestAuthentication) Constructs anOAuth2AuthorizationCodeRequestAuthenticationException
using the provided parameters.OAuth2AuthorizationCodeRequestAuthenticationException
(org.springframework.security.oauth2.core.OAuth2Error error, OAuth2AuthorizationCodeRequestAuthenticationToken authorizationCodeRequestAuthentication) Constructs anOAuth2AuthorizationCodeRequestAuthenticationException
using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns theAuthentication
instance of the OAuth 2.0 Authorization Request (or Consent), ornull
if not available.Methods inherited from class org.springframework.security.oauth2.core.OAuth2AuthenticationException
getError
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OAuth2AuthorizationCodeRequestAuthenticationException
public OAuth2AuthorizationCodeRequestAuthenticationException(org.springframework.security.oauth2.core.OAuth2Error error, @Nullable OAuth2AuthorizationCodeRequestAuthenticationToken authorizationCodeRequestAuthentication) Constructs anOAuth2AuthorizationCodeRequestAuthenticationException
using the provided parameters.- Parameters:
error
- theOAuth 2.0 Error
authorizationCodeRequestAuthentication
- theAuthentication
instance of the OAuth 2.0 Authorization Request (or Consent)
-
OAuth2AuthorizationCodeRequestAuthenticationException
public OAuth2AuthorizationCodeRequestAuthenticationException(org.springframework.security.oauth2.core.OAuth2Error error, Throwable cause, @Nullable OAuth2AuthorizationCodeRequestAuthenticationToken authorizationCodeRequestAuthentication) Constructs anOAuth2AuthorizationCodeRequestAuthenticationException
using the provided parameters.- Parameters:
error
- theOAuth 2.0 Error
cause
- the root causeauthorizationCodeRequestAuthentication
- theAuthentication
instance of the OAuth 2.0 Authorization Request (or Consent)
-
-
Method Details
-
getAuthorizationCodeRequestAuthentication
@Nullable public OAuth2AuthorizationCodeRequestAuthenticationToken getAuthorizationCodeRequestAuthentication()Returns theAuthentication
instance of the OAuth 2.0 Authorization Request (or Consent), ornull
if not available.- Returns:
- the
OAuth2AuthorizationCodeRequestAuthenticationToken
-