Class EntityListingErrorResponse
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.api.EntityListingResponse
-
- com.nimbusds.openid.connect.sdk.federation.api.EntityListingErrorResponse
-
@Immutable public class EntityListingErrorResponse extends EntityListingResponse
Entity listing error response.Related specifications:
- OpenID Connect Federation 1.0, sections 7.3.2 and 7.5.
-
-
Constructor Summary
Constructors Constructor Description EntityListingErrorResponse(FederationAPIError error)Creates a new entity listing error response.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FederationAPIErrorgetErrorObject()Returns the federation API error.booleanindicatesSuccess()Checks if the response indicates success.static EntityListingErrorResponseparse(HTTPResponse httpResponse)Parses an entity listing error response from the specified HTTP response.HTTPResponsetoHTTPResponse()Returns the matching HTTP response.-
Methods inherited from class com.nimbusds.openid.connect.sdk.federation.api.EntityListingResponse
toErrorResponse, toSuccessResponse
-
-
-
-
Constructor Detail
-
EntityListingErrorResponse
public EntityListingErrorResponse(FederationAPIError error)
Creates a new entity listing error response.- Parameters:
error- The federation API error. Must not benull.
-
-
Method Detail
-
getErrorObject
public FederationAPIError getErrorObject()
Returns the federation API error.- Returns:
- The federation API error.
-
indicatesSuccess
public boolean indicatesSuccess()
Description copied from interface:ResponseChecks if the response indicates success.- Returns:
trueif the response indicates success, elsefalse.
-
toHTTPResponse
public HTTPResponse toHTTPResponse()
Description copied from interface:ResponseReturns the matching HTTP response.- Returns:
- The HTTP response.
-
parse
public static EntityListingErrorResponse parse(HTTPResponse httpResponse) throws ParseException
Parses an entity listing error response from the specified HTTP response.- Parameters:
httpResponse- The HTTP response. Must not benull.- Returns:
- The entity listing error response.
- Throws:
ParseException- If parsing failed.
-
-