Class TrustNegotiationRequest
java.lang.Object
com.nimbusds.oauth2.sdk.AbstractRequest
com.nimbusds.openid.connect.sdk.federation.api.FederationAPIRequest
com.nimbusds.openid.connect.sdk.federation.api.TrustNegotiationRequest
Trust negotiation request.
Related specifications:
- OpenID Connect Federation 1.0, section 6.2.1.
-
Constructor Summary
ConstructorsConstructorDescriptionTrustNegotiationRequest
(URI endpoint, EntityID respondent, EntityID peer, FederationMetadataType metadataType, EntityID anchor) Creates a new trust negotiation request. -
Method Summary
Modifier and TypeMethodDescriptionReturns the metadata type.getPeer()
Returns the peer.Returns the respondent.Returns the trust anchor.static TrustNegotiationRequest
parse
(HTTPRequest httpRequest) Parses a trust negotiation request from the specified HTTP request.static TrustNegotiationRequest
Parses a trust negotiation request from the specified query string parameters.Returns the request query parameters.Methods inherited from class com.nimbusds.openid.connect.sdk.federation.api.FederationAPIRequest
getOperationType, toHTTPRequest
Methods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest
getEndpointURI
-
Constructor Details
-
TrustNegotiationRequest
public TrustNegotiationRequest(URI endpoint, EntityID respondent, EntityID peer, FederationMetadataType metadataType, EntityID anchor) Creates a new trust negotiation request.- Parameters:
endpoint
- The federation API endpoint. Must not benull
.respondent
- The respondent. Must not benull
.peer
- The peer. Must not benull
.metadataType
- The metadata type to resolve. Must not benull
.anchor
- The trust anchor. Must not benull
.
-
-
Method Details
-
getRespondent
Returns the respondent.- Returns:
- The respondent.
-
getPeer
Returns the peer.- Returns:
- The peer.
-
getMetadataType
Returns the metadata type.- Returns:
- The metadata type to resolve.
-
getTrustAnchor
Returns the trust anchor.- Returns:
- The trust anchor.
-
toParameters
Description copied from class:FederationAPIRequest
Returns the request query parameters.- Specified by:
toParameters
in classFederationAPIRequest
- Returns:
- The request query parameters.
-
parse
Parses a trust negotiation request from the specified query string parameters.- Parameters:
params
- The query string parameters. Must not benull
.- Returns:
- The trust negotiation request.
- Throws:
ParseException
- If parsing failed.
-
parse
Parses a trust negotiation request from the specified HTTP request.- Parameters:
httpRequest
- The HTTP request. Must not benull
.- Returns:
- The trust negotiation request.
- Throws:
ParseException
- If parsing failed.
-