Class PayloadFactory
- java.lang.Object
-
- app.coronawarn.server.services.federation.upload.payload.PayloadFactory
-
@Component public class PayloadFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description PayloadFactory(DiagnosisKeyBatchAssembler assembler, BatchSigner signer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<UploadPayload>
makePayloadList(List<FederationUploadKey> diagnosisKeys)
Generates the Payload objects based on a list of Diagnosis Keys.
-
-
-
Constructor Detail
-
PayloadFactory
public PayloadFactory(DiagnosisKeyBatchAssembler assembler, BatchSigner signer)
-
-
Method Detail
-
makePayloadList
public List<UploadPayload> makePayloadList(List<FederationUploadKey> diagnosisKeys)
Generates the Payload objects based on a list of Diagnosis Keys. This method will generate batches, add a proper batch tag and sign them with the server private key.- Parameters:
diagnosisKeys
- List of Diagnosis Keys.- Returns:
- upload payload object
UploadPayload
.
-
-