Class FederationEntityConfigurationErrorResponse
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.config.FederationEntityConfigurationResponse
-
- com.nimbusds.openid.connect.sdk.federation.config.FederationEntityConfigurationErrorResponse
-
- All Implemented Interfaces:
ErrorResponse,Message,Response
public class FederationEntityConfigurationErrorResponse extends FederationEntityConfigurationResponse implements ErrorResponse
Federation entity configuration error response.Related specifications:
- OpenID Connect Federation 1.0, section 6.2.
-
-
Constructor Summary
Constructors Constructor Description FederationEntityConfigurationErrorResponse(ErrorObject error)Creates a new federation entity configuration error response.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorObjectgetErrorObject()Gets the error associated with the error response.booleanindicatesSuccess()Checks if the response indicates success.static FederationEntityConfigurationErrorResponseparse(HTTPResponse httpResponse)Parses a federation entity configuration error response from the specified HTTP response.HTTPResponsetoHTTPResponse()Returns the matching HTTP response.-
Methods inherited from class com.nimbusds.openid.connect.sdk.federation.config.FederationEntityConfigurationResponse
toErrorResponse, toSuccessResponse
-
-
-
-
Constructor Detail
-
FederationEntityConfigurationErrorResponse
public FederationEntityConfigurationErrorResponse(ErrorObject error)
Creates a new federation entity configuration error response.- Parameters:
error- The error. Must not benull.
-
-
Method Detail
-
indicatesSuccess
public boolean indicatesSuccess()
Description copied from interface:ResponseChecks if the response indicates success.- Specified by:
indicatesSuccessin interfaceResponse- Returns:
trueif the response indicates success, elsefalse.
-
getErrorObject
public ErrorObject getErrorObject()
Description copied from interface:ErrorResponseGets the error associated with the error response.- Specified by:
getErrorObjectin interfaceErrorResponse- Returns:
- The error,
nullif none.
-
toHTTPResponse
public HTTPResponse toHTTPResponse()
Description copied from interface:ResponseReturns the matching HTTP response.- Specified by:
toHTTPResponsein interfaceResponse- Returns:
- The HTTP response.
-
parse
public static FederationEntityConfigurationErrorResponse parse(HTTPResponse httpResponse) throws ParseException
Parses a federation entity configuration error response from the specified HTTP response.- Parameters:
httpResponse- The HTTP response. Must not benull.- Returns:
- The federation entity configuration error response.
- Throws:
ParseException- If the HTTP response couldn't be parsed to a federation entity configuration error response.
-
-