Package org.apache.pinot.spi.crypt
Class NoOpPinotCrypter
- java.lang.Object
-
- org.apache.pinot.spi.crypt.NoOpPinotCrypter
-
- All Implemented Interfaces:
PinotCrypter
public class NoOpPinotCrypter extends Object implements PinotCrypter
This class is the default implementation for the PinotCrypter. It is a noop crypter and will not do any operations.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description NoOpPinotCrypter()
-
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
public void init(PinotConfiguration config)
Description copied from interface:PinotCrypterInitializes a crypter with any configurations it might need.- Specified by:
initin interfacePinotCrypter
-
encrypt
public void encrypt(File decryptedFile, File encryptedFile)
Description copied from interface:PinotCrypterEncrypts the file into the file location provided. The implementation should clean up file after any failures.- Specified by:
encryptin interfacePinotCrypter
-
decrypt
public void decrypt(File encryptedFile, File decryptedFile)
Description copied from interface:PinotCrypterDecrypts file into file location provided. The implementation should clean up file after any failures.- Specified by:
decryptin interfacePinotCrypter
-
-