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
-
@Immutable public class TrustNegotiationRequest extends FederationAPIRequest
Trust negotiation request.Related specifications:
- OpenID Connect Federation 1.0, section 6.2.1.
-
-
Constructor Summary
Constructors Constructor Description TrustNegotiationRequest(URI endpoint, EntityID respondent, EntityID peer, FederationMetadataType metadataType, EntityID anchor)Creates a new trust negotiation request.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FederationMetadataTypegetMetadataType()Returns the metadata type.EntityIDgetPeer()Returns the peer.EntityIDgetRespondent()Returns the respondent.EntityIDgetTrustAnchor()Returns the trust anchor.static TrustNegotiationRequestparse(HTTPRequest httpRequest)Parses a trust negotiation request from the specified HTTP request.static TrustNegotiationRequestparse(Map<String,List<String>> params)Parses a trust negotiation request from the specified query string parameters.Map<String,List<String>>toParameters()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 Detail
-
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 Detail
-
getRespondent
public EntityID getRespondent()
Returns the respondent.- Returns:
- The respondent.
-
getMetadataType
public FederationMetadataType getMetadataType()
Returns the metadata type.- Returns:
- The metadata type to resolve.
-
getTrustAnchor
public EntityID getTrustAnchor()
Returns the trust anchor.- Returns:
- The trust anchor.
-
toParameters
public Map<String,List<String>> toParameters()
Description copied from class:FederationAPIRequestReturns the request query parameters.- Specified by:
toParametersin classFederationAPIRequest- Returns:
- The request query parameters.
-
parse
public static TrustNegotiationRequest parse(Map<String,List<String>> params) throws ParseException
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
public static TrustNegotiationRequest parse(HTTPRequest httpRequest) throws ParseException
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.
-
-