Class TrustNegotiationResponse
java.lang.Object
com.nimbusds.openid.connect.sdk.federation.api.TrustNegotiationResponse
- Direct Known Subclasses:
TrustNegotiationErrorResponse
,TrustNegotiationSuccessResponse
Trust negotiation response.
Related specifications:
- OpenID Connect Federation 1.0, sections 6.2.2 and 6.4.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TrustNegotiationResponse
parse
(HTTPResponse httpResponse) Parses a trust negotiation response from the specified HTTP response.Casts this response to a trust negotiation error response.Casts this response to a trust negotiation success response.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.nimbusds.oauth2.sdk.Response
indicatesSuccess, toHTTPResponse
-
Constructor Details
-
TrustNegotiationResponse
public TrustNegotiationResponse()
-
-
Method Details
-
toSuccessResponse
Casts this response to a trust negotiation success response.- Returns:
- The trust negotiation success response.
-
toErrorResponse
Casts this response to a trust negotiation error response.- Returns:
- The trust negotiation error response.
-
parse
Parses a trust negotiation response from the specified HTTP response.- Parameters:
httpResponse
- The HTTP response. Must not benull
.- Returns:
- The trust negotiation response.
- Throws:
ParseException
- If parsing failed.
-