Class FederationAPIError
java.lang.Object
com.nimbusds.oauth2.sdk.ErrorObject
com.nimbusds.openid.connect.sdk.federation.api.FederationAPIError
- All Implemented Interfaces:
Serializable
Federation API error.
- OpenID Connect Federation 1.0, section 7.5.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFederationAPIError
(String code, String description) Creates a new federation API error.FederationAPIError
(String code, String description, int httpStatusCode) Creates a new federation API error. -
Method Summary
Modifier and TypeMethodDescriptionstatic FederationAPIError
parse
(HTTPResponse httpResponse) Parses a federation API error object from the specified HTTP response.static FederationAPIError
parse
(net.minidev.json.JSONObject jsonObject) Parses a federation API error object from the specified JSON object.withStatusCode
(int httpStatusCode) Returns a copy of this federation API error with the specified HTTP status code.Methods inherited from class com.nimbusds.oauth2.sdk.ErrorObject
appendDescription, equals, getCode, getCustomParams, getDescription, getHTTPStatusCode, getURI, hashCode, isLegal, isLegal, parse, removeIllegalChars, setCustomParams, setDescription, setHTTPStatusCode, setURI, toHTTPResponse, toJSONObject, toParameters, toString
-
Constructor Details
-
FederationAPIError
Creates a new federation API error.- Parameters:
code
- The error code,null
if not specified.description
- The error description,null
if not specified.
-
FederationAPIError
Creates a new federation API error.- Parameters:
code
- The error code,null
if not specified.description
- The error description,null
if not specified.httpStatusCode
- The HTTP status code, zero if not specified.
-
-
Method Details
-
withStatusCode
Returns a copy of this federation API error with the specified HTTP status code.- Parameters:
httpStatusCode
- The HTTP status code, zero if not specified.- Returns:
- The new federation API error.
-
parse
Parses a federation API error object from the specified JSON object.- Parameters:
jsonObject
- The JSON object to parse. Must not benull
.- Returns:
- The federation API error object.
-
parse
Parses a federation API error object from the specified HTTP response.- Parameters:
httpResponse
- The HTTP response to parse. Must not benull
.- Returns:
- The federation API error object.
-