Class FederationConfigurationResponse
- java.lang.Object
- 
- com.authlete.common.dto.ApiResponse
- 
- com.authlete.common.dto.FederationConfigurationResponse
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class FederationConfigurationResponse extends ApiResponse Response from Authlete's/federation/configurationAPI.Authlete's /federation/configurationAPI returns JSON which can be mapped to this class. The authorization server implementation should retrieve the value of theactionOKWhen the value of the actionOK
 In this case, the implementation of the entity configuration endpoint of the authorization server should return an HTTP response to the client application with the HTTP status code "200 OK" and the content type "application/entity-statement+jwt". The message body (= an entity configuration in the JWT format) of the response has been prepared by Authlete's/federation/configurationAPI and it is available as theresponseContentThe implementation of the entity configuration endpoint can construct an HTTP response by doing like below. 200 OK Content-Type: application/entity-statement+jwt (Other HTTP headers) (the value of the responseContentresponse parameter)NOT_FOUNDWhen the value of the In this case, the implementation of the entity configuration endpoint of the authorization server should return an HTTP response to the client application with the HTTP status code "actionNOT_FOUND404 Not Found" and the content type "application/json". The message body (= error information in the JSON format) of the response has been prepared by Authlete's/federation/configurationAPI and it is available as theresponseContentThe implementation of the entity configuration endpoint can construct an HTTP response by doing like below. 404 Not Found Content-Type: application/json (Other HTTP headers) (the value of the responseContentresponse parameter)INTERNAL_SERVER_ERRORWhen the value of the In this case, a simple implementation of the entity configuration endpoint would return an HTTP response to the client application with the HTTP status code "actionINTERNAL_SERVER_ERRORService.federationJwksService.authorityHints500 Internal Server Error" and the content type "application/json". The message body (= error information in the JSON format) of the response has been prepared by Authlete's/federation/configurationAPI and it is available as theresponseContentSuch simple implementation of the entity configuration endpoint can construct an HTTP response by doing like below. 500 Internal Server Error Content-Type: application/json (Other HTTP headers) (the value of the responseContentresponse parameter)However, in real commercial deployments, it is rare for an authorization server to return " 500 Internal Server Error" when it encounters an unexpected internal error. It's up to implementations of authorization servers what they actually return to client applications in the case of internal server error.- Since:
- 3.31, Authlete 2.3
- See Also:
- OpenID Federation 1.0, Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFederationConfigurationResponse.ActionThe next action that the implementation of the entity configuration endpoint should take after getting a response from Authlete's/federation/configurationAPI.
 - 
Constructor SummaryConstructors Constructor Description FederationConfigurationResponse()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FederationConfigurationResponse.ActiongetAction()Get the next action that the implementation of the entity configuration endpoint should take after getting a response from Authlete's/federation/configurationAPI.StringgetResponseContent()Get the content that the implementation of the entity configuration endpoint should use when it constructs a response to the client application.FederationConfigurationResponsesetAction(FederationConfigurationResponse.Action action)Set the next action that the implementation of the entity configuration endpoint should take after getting a response from Authlete's/federation/configurationAPI.FederationConfigurationResponsesetResponseContent(String content)Set the content that the implementation of the entity configuration endpoint should use when it constructs a response to the client application.- 
Methods inherited from class com.authlete.common.dto.ApiResponsegetResponseHeaders, getResultCode, getResultMessage, setResponseHeaders, setResultCode, setResultMessage
 
- 
 
- 
- 
- 
Method Detail- 
getActionpublic FederationConfigurationResponse.Action getAction() Get the next action that the implementation of the entity configuration endpoint should take after getting a response from Authlete's/federation/configurationAPI.- Returns:
- The next action.
 
 - 
setActionpublic FederationConfigurationResponse setAction(FederationConfigurationResponse.Action action) Set the next action that the implementation of the entity configuration endpoint should take after getting a response from Authlete's/federation/configurationAPI.- Parameters:
- action- The next action.
- Returns:
- thisobject.
 
 - 
getResponseContentpublic String getResponseContent() Get the content that the implementation of the entity configuration endpoint should use when it constructs a response to the client application.The format of the content varies depending on the value of the actionresponse parameter.- Returns:
- The content that should be returned to the client application.
 
 - 
setResponseContentpublic FederationConfigurationResponse setResponseContent(String content) Set the content that the implementation of the entity configuration endpoint should use when it constructs a response to the client application.The format of the content varies depending on the value of the actionresponse parameter.- Parameters:
- content- The content that should be returned to the client application.
- Returns:
- thisobject.
 
 
- 
 
-