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(String message)Creates a new invalid OAuth 2.0 authorisation / OpenID authentication request exception.InvalidAuthorizationRequestException(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.ErrorObjectgetErrorObject()Returns the error object with code and optional description and URI.booleanisRedirectDisabled()Returnstrueif 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(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(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-trueif redirection back to the OAuth 2.0 client with the error is disabled,falseto perform the regular redirection toredirect_uriwith 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()
Returnstrueif redirection back to the OAuth 2.0 client with the error is disabled.- Returns:
trueif redirection is disabled,falseto perform the regular redirection toredirect_uriwith the error.
-
-