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 Summary
ConstructorDescriptionInvalidAuthorizationRequestException
(@Nullable String message) Creates a new invalid OAuth 2.0 authorisation / OpenID authentication request exception.InvalidAuthorizationRequestException
(@Nullable String message, com.nimbusds.oauth2.sdk.ErrorObject errorObject, boolean redirectDisabled) Creates a new invalid OAuth 2.0 authorisation / OpenID authentication request exception. -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.oauth2.sdk.ErrorObject
Returns the error object with code and optional description and URI.boolean
Returnstrue
if redirection back to the OAuth 2.0 client with the error is disabled.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidAuthorizationRequestException
Creates a new invalid OAuth 2.0 authorisation / OpenID authentication request exception. The error code is set toinvalid_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 benull
.
-
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 benull
.errorObject
- The error object, with code and optional description and URI. Must not benull
.redirectDisabled
-true
if redirection back to the OAuth 2.0 client with the error is disabled,false
to perform the regular redirection toredirect_uri
with the error.
-
-
Method Details
-
getErrorObject
Returns the error object with code and optional description and URI.- Returns:
- The error object.
-
isRedirectDisabled
Returnstrue
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 toredirect_uri
with the error.
-