Class TrustNegotiationSuccessResponse
java.lang.Object
com.nimbusds.openid.connect.sdk.federation.api.TrustNegotiationResponse
com.nimbusds.openid.connect.sdk.federation.api.TrustNegotiationSuccessResponse
Trust negotiation success response.
Related specifications:
- OpenID Connect Federation 1.0, section 6.2.2.
-
Constructor Summary
ConstructorsConstructorDescriptionTrustNegotiationSuccessResponse(net.minidev.json.JSONObject metadata) Creates a new trust negotiation success response. -
Method Summary
Modifier and TypeMethodDescriptionnet.minidev.json.JSONObjectReturns metadata JSON object for the requestedmetadata type.booleanChecks if the response indicates success.parse(HTTPResponse httpResponse) Parses a trust negotiation success response from the specified HTTP response.Returns the matching HTTP response.Methods inherited from class com.nimbusds.openid.connect.sdk.federation.api.TrustNegotiationResponse
toErrorResponse, toSuccessResponse
-
Constructor Details
-
TrustNegotiationSuccessResponse
Creates a new trust negotiation success response.- Parameters:
metadata- The metadata JSON object for the requestedmetadata type. Must not benull.
-
-
Method Details
-
getMetadataJSONObject
Returns metadata JSON object for the requestedmetadata type.- Returns:
- The metadata JSON object.
-
indicatesSuccess
Description copied from interface:ResponseChecks if the response indicates success.- Returns:
trueif the response indicates success, elsefalse.
-
toHTTPResponse
Description copied from interface:ResponseReturns the matching HTTP response.- Returns:
- The HTTP response.
-
parse
public static TrustNegotiationSuccessResponse parse(HTTPResponse httpResponse) throws ParseException Parses a trust negotiation success response from the specified HTTP response.- Parameters:
httpResponse- The HTTP response. Must not benull.- Returns:
- The trust negotiation success response.
- Throws:
ParseException- If parsing failed.
-