Class ExposedInvalidClientException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.nimbusds.oauth2.sdk.GeneralException
com.nimbusds.oauth2.sdk.auth.verifier.InvalidClientException
com.nimbusds.openid.connect.provider.spi.clientauth.ExposedInvalidClientException
All Implemented Interfaces:
Serializable

public class ExposedInvalidClientException extends com.nimbusds.oauth2.sdk.auth.verifier.InvalidClientException
InvalidClientException with error_description and error_uri details exposed in the HTTP 401 Unauthorized error response.
See Also:
  • Constructor Details

    • ExposedInvalidClientException

      public ExposedInvalidClientException(String message, String errorDescription)
      Creates a new exposed invalid client exception.
      Parameters:
      message - The exception message (will be logged by the Connect2id server and not exposed in the HTTP 401 Unauthorized error response), null if not specified.
      errorDescription - The error_description to return in the HTTP 401 Unauthorized response, null if not specified.
    • ExposedInvalidClientException

      public ExposedInvalidClientException(String message, String errorDescription, URI errorURI)
      Creates a new exposed invalid client exception.
      Parameters:
      message - The exception message (will be logged by the Connect2id server and not exposed in the HTTP 401 Unauthorized error response), null if not specified.
      errorDescription - The error_description to return in the HTTP 401 Unauthorized response, null if not specified.
      errorURI - The error_uri to return in the HTTP 401 Unauthorized response, null if not specified.
  • Method Details

    • getErrorObject

      public com.nimbusds.oauth2.sdk.ErrorObject getErrorObject()
      Overrides:
      getErrorObject in class com.nimbusds.oauth2.sdk.auth.verifier.InvalidClientException