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.
Since:
0.1.2
See Also:
  • Constructor Details

    • OAuth2AuthorizationCodeRequestAuthenticationException

      public OAuth2AuthorizationCodeRequestAuthenticationException(org.springframework.security.oauth2.core.OAuth2Error error, @Nullable OAuth2AuthorizationCodeRequestAuthenticationToken authorizationCodeRequestAuthentication)
      Constructs an OAuth2AuthorizationCodeRequestAuthenticationException using the provided parameters.
      Parameters:
      error - the OAuth 2.0 Error
      authorizationCodeRequestAuthentication - the Authentication 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 an OAuth2AuthorizationCodeRequestAuthenticationException using the provided parameters.
      Parameters:
      error - the OAuth 2.0 Error
      cause - the root cause
      authorizationCodeRequestAuthentication - the Authentication instance of the OAuth 2.0 Authorization Request (or Consent)
  • Method Details