Class InvalidAuthorizationRequestException

    • Constructor Detail

      • InvalidAuthorizationRequestException

        public InvalidAuthorizationRequestException​(String message)
        Creates a new invalid OAuth 2.0 authorisation / OpenID authentication request exception. The error code is set to invalid_request. The exception will result in redirection back to the OAuth 2.0 client with the error.
        Parameters:
        message - The exception message, will be logged. Should not be null.
      • InvalidAuthorizationRequestException

        public InvalidAuthorizationRequestException​(String message,
                                                    com.nimbusds.oauth2.sdk.ErrorObject errorObject,
                                                    boolean redirectDisabled)
        Creates a new invalid OAuth 2.0 authorisation / OpenID authentication request exception.
        Parameters:
        message - The exception message, will be logged. Should not be null.
        errorObject - The error object, with code and optional description and URI. Must not be null.
        redirectDisabled - true if redirection back to the OAuth 2.0 client with the error is disabled, false to perform the regular redirection to redirect_uri with the error.
    • Method Detail

      • getErrorObject

        public com.nimbusds.oauth2.sdk.ErrorObject getErrorObject()
        Returns the error object with code and optional description and URI.
        Returns:
        The error object.
      • isRedirectDisabled

        public boolean isRedirectDisabled()
        Returns true if redirection back to the OAuth 2.0 client with the error is disabled.
        Returns:
        true if redirection is disabled, false to perform the regular redirection to redirect_uri with the error.