Class FederationRegistrationRequest
- java.lang.Object
-
- com.authlete.common.dto.FederationRegistrationRequest
-
- All Implemented Interfaces:
Serializable
public class FederationRegistrationRequest extends Object implements Serializable
Request to Authlete's/federation/registrationAPI.The Authlete API is for implementations of the federation registration endpoint that accepts "explicit client registration". Its details are defined in OpenID Federation 1.0.
The endpoint accepts
POSTrequests whoseContent-Typeis either of the following.application/entity-statement+jwtapplication/trust-chain+json
When the
Content-Typeof a request isapplication/entity-statement+jwt, the content of the request is the entity configuration of a relying party that is to be registered. In this case, the implementation of the federation registration endpoint should call Authlete's/federation/registrationAPI with the entity configuration set to theentityConfigurationrequest parameter.On the other hand, when the
Content-Typeof a request isapplication/trust-chain+json, the content of the request is a JSON array that contains entity statements in JWT format. The sequence of the entity statements composes the trust chain of a relying party that is to be registered. In this case, the implementation of the federation registration endpoint should call Authlete's/federation/registrationAPI with the trust chain set to thetrustChainrequest parameter.- Since:
- 3.45, Authlete 2.3
- See Also:
- OpenID Federation 1.0, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FederationRegistrationRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEntityConfiguration()Get the entity configuration of a relying party.StringgetTrustChain()Get the trust chain of a relying party.FederationRegistrationRequestsetEntityConfiguration(String jwt)Set the entity configuration of a relying party.FederationRegistrationRequestsetTrustChain(String json)Set the trust chain of a relying party.
-
-
-
Method Detail
-
getEntityConfiguration
public String getEntityConfiguration()
Get the entity configuration of a relying party.- Returns:
- An entity configuration in JWT format.
-
setEntityConfiguration
public FederationRegistrationRequest setEntityConfiguration(String jwt)
Set the entity configuration of a relying party.- Parameters:
jwt- An entity configuration in JWT format.- Returns:
thisobject.
-
getTrustChain
public String getTrustChain()
Get the trust chain of a relying party.- Returns:
- A trust chain in JSON format.
-
setTrustChain
public FederationRegistrationRequest setTrustChain(String json)
Set the trust chain of a relying party.- Parameters:
json- A trust chain in JSON format.- Returns:
thisobject.
-
-