Class TrustNegotiationResponse
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.api.TrustNegotiationResponse
-
- Direct Known Subclasses:
TrustNegotiationErrorResponse
,TrustNegotiationSuccessResponse
public abstract class TrustNegotiationResponse extends Object implements Response
Trust negotiation response.Related specifications:
- OpenID Connect Federation 1.0, sections 6.2.2 and 6.4.
-
-
Constructor Summary
Constructors Constructor Description TrustNegotiationResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrustNegotiationResponse
parse(HTTPResponse httpResponse)
Parses a trust negotiation response from the specified HTTP response.TrustNegotiationErrorResponse
toErrorResponse()
Casts this response to a trust negotiation error response.TrustNegotiationSuccessResponse
toSuccessResponse()
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 Detail
-
TrustNegotiationResponse
public TrustNegotiationResponse()
-
-
Method Detail
-
toSuccessResponse
public TrustNegotiationSuccessResponse toSuccessResponse()
Casts this response to a trust negotiation success response.- Returns:
- The trust negotiation success response.
-
toErrorResponse
public TrustNegotiationErrorResponse toErrorResponse()
Casts this response to a trust negotiation error response.- Returns:
- The trust negotiation error response.
-
parse
public static TrustNegotiationResponse parse(HTTPResponse httpResponse) throws ParseException
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.
-
-