Class BatchSigner
- java.lang.Object
-
- app.coronawarn.server.services.federation.upload.payload.signing.BatchSigner
-
@Component public class BatchSigner extends Object
-
-
Constructor Summary
Constructors Constructor Description BatchSigner(CryptoProvider cryptoProvider, UploadServiceConfig uploadServiceConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createSignatureBytes(DiagnosisKeyBatch batch)
Generate the signature bytes based onDiagnosisKeyBatch
.
-
-
-
Constructor Detail
-
BatchSigner
public BatchSigner(CryptoProvider cryptoProvider, UploadServiceConfig uploadServiceConfig)
-
-
Method Detail
-
createSignatureBytes
public String createSignatureBytes(DiagnosisKeyBatch batch) throws GeneralSecurityException, org.bouncycastle.cms.CMSException, org.bouncycastle.operator.OperatorCreationException, IOException
Generate the signature bytes based onDiagnosisKeyBatch
.- Parameters:
batch
-DiagnosisKeyBatch
.- Returns:
- signature bytes encoded to Base64.
- Throws:
GeneralSecurityException
- .org.bouncycastle.cms.CMSException
- .org.bouncycastle.operator.OperatorCreationException
- .IOException
- .
-
-