Interface PinotCrypter

  • All Known Implementing Classes:
    NoOpPinotCrypter

    public interface PinotCrypter
    The 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
      void decrypt​(File encryptedFile, File decryptedFile)
      Decrypts file into file location provided.
      void encrypt​(File decryptedFile, File encryptedFile)
      Encrypts the file into the file location provided.
      void init​(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 -
      • decrypt

        void decrypt​(File encryptedFile,
                     File decryptedFile)
        Decrypts file into file location provided. The implementation should clean up file after any failures.
        Parameters:
        encryptedFile -
        decryptedFile -