Package org.apache.pinot.spi.crypt
Interface PinotCrypter
-
- All Known Implementing Classes:
NoOpPinotCrypter
public interface PinotCrypterThe PinotCrypter will encrypt and decrypt segments when they are downloaded. This class is especially useful in cases where segments cannot be stored unencrypted in storage.
-
-
Method Summary
Modifier and Type Method Description voiddecrypt(File encryptedFile, File decryptedFile)Decrypts file into file location provided.voidencrypt(File decryptedFile, File encryptedFile)Encrypts the file into the file location provided.voidinit(PinotConfiguration config)Initializes a crypter with any configurations it might need.
-
-
-
Method Detail
-
init
void init(PinotConfiguration config)
Initializes a crypter with any configurations it might need.- Parameters:
config-
-
encrypt
void encrypt(File decryptedFile, File encryptedFile)
Encrypts the file into the file location provided. The implementation should clean up file after any failures.- Parameters:
decryptedFile-encryptedFile-
-
-