Class UploadPayload
- java.lang.Object
-
- app.coronawarn.server.services.federation.upload.payload.UploadPayload
-
public class UploadPayload extends Object
This class represents an Upload call to the Federation Gateway. The payload for EFGS must contain the following information:- The bytes of the protobuf (
DiagnosisKeyBatch
batch). - The signature bytes (String batchSignature).
- The unique batch tag (String batchTag).
- The bytes of the protobuf (
-
-
Constructor Summary
Constructors Constructor Description UploadPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiagnosisKeyBatch
getBatch()
String
getBatchSignature()
String
getBatchTag()
List<FederationUploadKey>
getOriginalKeys()
ReturnsDiagnosisKey
entities that are part of this upload payload.UploadPayload
setBatch(DiagnosisKeyBatch batch)
UploadPayload
setBatchSignature(String batchSignature)
UploadPayload
setBatchTag(String batchTag)
void
setOriginalKeys(List<FederationUploadKey> originalKeys)
-
-
-
Method Detail
-
getBatch
public DiagnosisKeyBatch getBatch()
-
setBatch
public UploadPayload setBatch(DiagnosisKeyBatch batch)
-
getBatchSignature
public String getBatchSignature()
-
setBatchSignature
public UploadPayload setBatchSignature(String batchSignature)
-
getBatchTag
public String getBatchTag()
-
setBatchTag
public UploadPayload setBatchTag(String batchTag)
-
getOriginalKeys
public List<FederationUploadKey> getOriginalKeys()
ReturnsDiagnosisKey
entities that are part of this upload payload.
-
setOriginalKeys
public void setOriginalKeys(List<FederationUploadKey> originalKeys)
-
-