Class TrustNegotiationErrorResponse
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.api.TrustNegotiationResponse
-
- com.nimbusds.openid.connect.sdk.federation.api.TrustNegotiationErrorResponse
-
@Immutable public class TrustNegotiationErrorResponse extends TrustNegotiationResponse
Trust negotiation error response.Related specifications:
- OpenID Connect Federation 1.0, sections 6.2.2 and 6.4.
-
-
Constructor Summary
Constructors Constructor Description TrustNegotiationErrorResponse(FederationAPIError error)
Creates a new trust negotiation error response.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FederationAPIError
getErrorObject()
Returns the federation API error.boolean
indicatesSuccess()
Checks if the response indicates success.static TrustNegotiationErrorResponse
parse(HTTPResponse httpResponse)
Parses a trust negotiation error response from the specified HTTP response.HTTPResponse
toHTTPResponse()
Returns the matching HTTP response.-
Methods inherited from class com.nimbusds.openid.connect.sdk.federation.api.TrustNegotiationResponse
toErrorResponse, toSuccessResponse
-
-
-
-
Constructor Detail
-
TrustNegotiationErrorResponse
public TrustNegotiationErrorResponse(FederationAPIError error)
Creates a new trust negotiation 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:Response
Checks if the response indicates success.- Returns:
true
if the response indicates success, elsefalse
.
-
toHTTPResponse
public HTTPResponse toHTTPResponse()
Description copied from interface:Response
Returns the matching HTTP response.- Returns:
- The HTTP response.
-
parse
public static TrustNegotiationErrorResponse parse(HTTPResponse httpResponse) throws ParseException
Parses a trust negotiation error response from the specified HTTP response.- Parameters:
httpResponse
- The HTTP response. Must not benull
.- Returns:
- The trust negotiation error response.
- Throws:
ParseException
- If parsing failed.
-
-