Class 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:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • getErrorObject

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