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 anOAuth2AuthorizationCodeRequestAuthenticationExceptionusing the provided parameters.OAuth2AuthorizationCodeRequestAuthenticationException(org.springframework.security.oauth2.core.OAuth2Error error, 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 org.springframework.security.oauth2.core.OAuth2AuthenticationException
getErrorMethods 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 anOAuth2AuthorizationCodeRequestAuthenticationExceptionusing the provided parameters.- Parameters:
error- theOAuth 2.0 ErrorauthorizationCodeRequestAuthentication- theAuthenticationinstance 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 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
@Nullable public OAuth2AuthorizationCodeRequestAuthenticationToken getAuthorizationCodeRequestAuthentication()Returns theAuthenticationinstance of the OAuth 2.0 Authorization Request (or Consent), ornullif not available.- Returns:
- the
OAuth2AuthorizationCodeRequestAuthenticationToken
-