Class InvalidAuthorizationRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.nimbusds.openid.connect.provider.spi.authz.InvalidAuthorizationRequestException
-
- All Implemented Interfaces:
Serializable
public class InvalidAuthorizationRequestException extends Exception
Invalid OAuth 2.0 authorisation / OpenID authentication request exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidAuthorizationRequestException(@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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.nimbusds.oauth2.sdk.ErrorObject
getErrorObject()
Returns the error object with code and optional description and URI.boolean
isRedirectDisabled()
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 Detail
-
InvalidAuthorizationRequestException
public InvalidAuthorizationRequestException(@Nullable String message)
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 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()
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.
-
-