Class ClientAuthorizationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClientAuthorizationRequiredException

public class ClientAuthorizationException extends OAuth2AuthorizationException
This exception is thrown on the client side when an attempt to authenticate or authorize an OAuth 2.0 client fails.
Since:
5.3
See Also:
  • Constructor Details

    • ClientAuthorizationException

      public ClientAuthorizationException(OAuth2Error error, String clientRegistrationId)
      Constructs a ClientAuthorizationException using the provided parameters.
      Parameters:
      error - the OAuth 2.0 Error
      clientRegistrationId - the identifier for the client's registration
    • ClientAuthorizationException

      public ClientAuthorizationException(OAuth2Error error, String clientRegistrationId, String message)
      Constructs a ClientAuthorizationException using the provided parameters.
      Parameters:
      error - the OAuth 2.0 Error
      clientRegistrationId - the identifier for the client's registration
      message - the exception message
    • ClientAuthorizationException

      public ClientAuthorizationException(OAuth2Error error, String clientRegistrationId, Throwable cause)
      Constructs a ClientAuthorizationException using the provided parameters.
      Parameters:
      error - the OAuth 2.0 Error
      clientRegistrationId - the identifier for the client's registration
      cause - the root cause
    • ClientAuthorizationException

      public ClientAuthorizationException(OAuth2Error error, String clientRegistrationId, String message, Throwable cause)
      Constructs a ClientAuthorizationException using the provided parameters.
      Parameters:
      error - the OAuth 2.0 Error
      clientRegistrationId - the identifier for the client's registration
      message - the exception message
      cause - the root cause
  • Method Details

    • getClientRegistrationId

      public String getClientRegistrationId()
      Returns the identifier for the client's registration.
      Returns:
      the identifier for the client's registration