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 OAuth2AuthenticationException
This exception is thrown by
OAuth2AuthorizationCodeRequestAuthenticationProvider when an attempt to
authenticate the OAuth 2.0 Authorization Request (or Consent) fails.- Since:
- 7.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2AuthorizationCodeRequestAuthenticationException(OAuth2Error error, Throwable cause, @Nullable OAuth2AuthorizationCodeRequestAuthenticationToken authorizationCodeRequestAuthentication) Constructs anOAuth2AuthorizationCodeRequestAuthenticationExceptionusing the provided parameters.OAuth2AuthorizationCodeRequestAuthenticationException(OAuth2Error error, @Nullable OAuth2AuthorizationCodeRequestAuthenticationToken authorizationCodeRequestAuthentication) Constructs anOAuth2AuthorizationCodeRequestAuthenticationExceptionusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns theAuthenticationinstance of the OAuth 2.0 Authorization Request (or Consent), ornullif not available.Methods inherited from class OAuth2AuthenticationException
getErrorMethods inherited from class AuthenticationException
getAuthenticationRequest, setAuthenticationRequestMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OAuth2AuthorizationCodeRequestAuthenticationException
public OAuth2AuthorizationCodeRequestAuthenticationException(OAuth2Error error, @Nullable OAuth2AuthorizationCodeRequestAuthenticationToken authorizationCodeRequestAuthentication) Constructs anOAuth2AuthorizationCodeRequestAuthenticationExceptionusing the provided parameters.- Parameters:
error- theOAuth 2.0 ErrorauthorizationCodeRequestAuthentication- theAuthenticationinstance of the OAuth 2.0 Authorization Request (or Consent)
-
OAuth2AuthorizationCodeRequestAuthenticationException
public OAuth2AuthorizationCodeRequestAuthenticationException(OAuth2Error error, Throwable cause, @Nullable OAuth2AuthorizationCodeRequestAuthenticationToken authorizationCodeRequestAuthentication) Constructs anOAuth2AuthorizationCodeRequestAuthenticationExceptionusing the provided parameters.- Parameters:
error- theOAuth 2.0 Errorcause- the root causeauthorizationCodeRequestAuthentication- theAuthenticationinstance of the OAuth 2.0 Authorization Request (or Consent)
-
-
Method Details
-
getAuthorizationCodeRequestAuthentication
public @Nullable OAuth2AuthorizationCodeRequestAuthenticationToken getAuthorizationCodeRequestAuthentication()Returns theAuthenticationinstance of the OAuth 2.0 Authorization Request (or Consent), ornullif not available.- Returns:
- the
OAuth2AuthorizationCodeRequestAuthenticationToken
-