Interface FederationGatewayClient
-
@FeignClient(name="federation-server", url="${federation-gateway.base-url}") public interface FederationGatewayClient
Declarative web service client for the Federation Gateway API.Any application that wants to uses it must make sure the required configuration beans in this module are registered (scan root package of the module). There is also a constraint imposed on application properties, such that values for the following structure must be declared:
- federation-gateway.base-url
- federation-gateway.ssl.key-store-path
- federation-gateway.ssl.key-store-pass
- federation-gateway.ssl.certificate-type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<DiagnosisKeyBatch>
getDiagnosisKeys(String date)
org.springframework.http.ResponseEntity<DiagnosisKeyBatch>
getDiagnosisKeys(String batchTag, String date)
org.springframework.http.ResponseEntity<BatchUploadResponse>
postBatchUpload(byte[] raw, String batchTag, String batchSignature)
HTTP POST request federation gateway endpoint /diagnosiskyes/upload.
-
-
-
Method Detail
-
getDiagnosisKeys
@GetMapping(value="/diagnosiskeys/download/{date}", headers={"Accept=application/protobuf; version=1.0","X-SSL-Client-SHA256=${federation-gateway.ssl.certificate-sha}","X-SSL-Client-DN=${federation-gateway.ssl.certificate-dn}"}) org.springframework.http.ResponseEntity<DiagnosisKeyBatch> getDiagnosisKeys(@PathVariable("date") String date)
-
getDiagnosisKeys
@GetMapping(value="/diagnosiskeys/download/{date}", headers={"Accept=application/protobuf; version=1.0","X-SSL-Client-SHA256=${federation-gateway.ssl.certificate-sha}","X-SSL-Client-DN=${federation-gateway.ssl.certificate-dn}"}) org.springframework.http.ResponseEntity<DiagnosisKeyBatch> getDiagnosisKeys(@RequestHeader("batchTag") String batchTag, @PathVariable("date") String date)
-
postBatchUpload
@PostMapping(value="/diagnosiskeys/upload", consumes="application/protobuf; version=1.0", headers={"Accept=application/json; version=1.0","X-SSL-Client-SHA256=${federation-gateway.ssl.certificate-sha}","X-SSL-Client-DN=${federation-gateway.ssl.certificate-dn}"}) org.springframework.http.ResponseEntity<BatchUploadResponse> postBatchUpload(byte[] raw, @RequestHeader("batchTag") String batchTag, @RequestHeader("batchSignature") String batchSignature)
HTTP POST request federation gateway endpoint /diagnosiskyes/upload.- Parameters:
raw
- Payload body. This property contains a raw byte array with the encoded protobuf DiagnosisKeyBatch.batchTag
- Unique batchTag to be identified by EFGS.batchSignature
- Batch Signature as per PKCS#7 spec using Authorized Signing Certificate.
-
-