Package org.apache.parquet.crypto
Class InternalFileDecryptor
- java.lang.Object
-
- org.apache.parquet.crypto.InternalFileDecryptor
-
public class InternalFileDecryptor extends Object
-
-
Constructor Summary
Constructors Constructor Description InternalFileDecryptor(FileDecryptionProperties fileDecryptionProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkFooterIntegrity()
AesGcmEncryptor
createSignedFooterEncryptor()
BlockCipher.Decryptor
fetchFooterDecryptor()
InternalColumnDecryptionSetup
getColumnSetup(org.apache.parquet.hadoop.metadata.ColumnPath path)
FileDecryptionProperties
getDecryptionProperties()
byte[]
getFileAAD()
boolean
plaintextFile()
boolean
plaintextFilesAllowed()
InternalColumnDecryptionSetup
setColumnCryptoMetadata(org.apache.parquet.hadoop.metadata.ColumnPath path, boolean encrypted, boolean encryptedWithFooterKey, byte[] keyMetadata, int columnOrdinal)
void
setFileCryptoMetaData(EncryptionAlgorithm algorithm, boolean encryptedFooter, byte[] footerKeyMetaData)
void
setPlaintextFile()
-
-
-
Constructor Detail
-
InternalFileDecryptor
public InternalFileDecryptor(FileDecryptionProperties fileDecryptionProperties)
-
-
Method Detail
-
getColumnSetup
public InternalColumnDecryptionSetup getColumnSetup(org.apache.parquet.hadoop.metadata.ColumnPath path)
-
fetchFooterDecryptor
public BlockCipher.Decryptor fetchFooterDecryptor()
-
setFileCryptoMetaData
public void setFileCryptoMetaData(EncryptionAlgorithm algorithm, boolean encryptedFooter, byte[] footerKeyMetaData)
-
setColumnCryptoMetadata
public InternalColumnDecryptionSetup setColumnCryptoMetadata(org.apache.parquet.hadoop.metadata.ColumnPath path, boolean encrypted, boolean encryptedWithFooterKey, byte[] keyMetadata, int columnOrdinal)
-
getFileAAD
public byte[] getFileAAD()
-
createSignedFooterEncryptor
public AesGcmEncryptor createSignedFooterEncryptor()
-
checkFooterIntegrity
public boolean checkFooterIntegrity()
-
plaintextFilesAllowed
public boolean plaintextFilesAllowed()
-
setPlaintextFile
public void setPlaintextFile()
-
plaintextFile
public boolean plaintextFile()
-
getDecryptionProperties
public FileDecryptionProperties getDecryptionProperties()
-
-