Class InvalidPushedAuthorizationRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.nimbusds.openid.connect.provider.spi.par.InvalidPushedAuthorizationRequestException
-
- All Implemented Interfaces:
Serializable
public class InvalidPushedAuthorizationRequestException extends Exception
Invalid Pushed Authorisation Request (PAR) exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidPushedAuthorizationRequestException(String message)
Creates a new invalid Pushed Authorisation Request (PAR) exception.InvalidPushedAuthorizationRequestException(String message, com.nimbusds.oauth2.sdk.ErrorObject errorObject)
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.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidPushedAuthorizationRequestException
public InvalidPushedAuthorizationRequestException(String message)
Creates a new invalid Pushed Authorisation Request (PAR) exception. The HTTP status is set to 400 and error code in the JSON object is set toinvalid_request
.- Parameters:
message
- The exception message, will be logged. Should not benull
.
-
InvalidPushedAuthorizationRequestException
public InvalidPushedAuthorizationRequestException(String message, com.nimbusds.oauth2.sdk.ErrorObject errorObject)
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 HTTP status, error code and optional error description and error URI. Must not benull
.
-
-
Method Detail
-
getErrorObject
public com.nimbusds.oauth2.sdk.ErrorObject getErrorObject()
Returns the error object.- Returns:
- The error object with HTTP status, error code and optional error description and error URI.
-
-