Package com.github.ambry.config
Class CryptoServiceConfig
- java.lang.Object
-
- com.github.ambry.config.CryptoServiceConfig
-
public class CryptoServiceConfig extends java.lang.Object
Configuration parameters required by aCryptoService
. Receives the in-memory representation of a properties file and extracts parameters that are specifically required forCryptoService
and presents them for retrieval through defined APIs.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
cryptoServiceEncryptionDecryptionMode
The mode to encrypt or decrypt.int
cryptoServiceIvSizeInBytes
The iv size that the CryptoService will populate onCryptoService.encrypt(ByteBuffer, Object)
-
Constructor Summary
Constructors Constructor Description CryptoServiceConfig(VerifiableProperties verifiableProperties)
-
-
-
Field Detail
-
cryptoServiceEncryptionDecryptionMode
@Config("crypto.service.encryption.decryption.mode") @Default("GCM") public final java.lang.String cryptoServiceEncryptionDecryptionMode
The mode to encrypt or decrypt. Accepted values are "GCM" for now. Ensure this algo goes hand in hand withKeyManagementService
implementation
-
cryptoServiceIvSizeInBytes
@Config("crypto.service.iv.size.in.bytes") @Default("12") public final int cryptoServiceIvSizeInBytes
The iv size that the CryptoService will populate onCryptoService.encrypt(ByteBuffer, Object)
-
-
Constructor Detail
-
CryptoServiceConfig
public CryptoServiceConfig(VerifiableProperties verifiableProperties)
-
-