Class InvalidAuthorizationRequestException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.nimbusds.openid.connect.provider.spi.authz.InvalidAuthorizationRequestException
All Implemented Interfaces:
Serializable

Invalid OAuth 2.0 authorisation / OpenID authentication request exception.
See Also:
  • Constructor Details

    • InvalidAuthorizationRequestException

      public InvalidAuthorizationRequestException(@Nullable 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(@Nullable 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 Details

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