Class InvalidOAuthClientException

  • All Implemented Interfaces:
    Serializable

    public class InvalidOAuthClientException
    extends OAuthException
    Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). The authorization server MAY return an HTTP 401 (Unauthorized) status code to indicate which HTTP authentication schemes are supported. If the client attempted to authenticate via the "Authorization" request header field, the authorization server MUST respond with an HTTP 401 (Unauthorized) status code and include the "WWW-Authenticate" response header field matching the authentication scheme used by the client.
    See Also:
    RFC 6749 # 5.2 - The OAuth 2.0 Authorization Framework, Serialized Form
    • Constructor Detail

      • InvalidOAuthClientException

        public InvalidOAuthClientException​(String message)
        Builds an InvalidClientException with a given message.
        Parameters:
        message - exception message
      • InvalidOAuthClientException

        public InvalidOAuthClientException​(String message,
                                           Exception cause)
        Builds an InvalidClientException with a given message and cause.
        Parameters:
        message - Exception's message
        cause - Exception to wrap