public interface EncryptionPropertiesFactory
loadFactory(Configuration).| Modifier and Type | Field and Description |
|---|---|
static String |
CRYPTO_FACTORY_CLASS_PROPERTY_NAME |
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method and Description |
|---|---|
FileEncryptionProperties |
getFileEncryptionProperties(org.apache.hadoop.conf.Configuration fileHadoopConfig,
org.apache.hadoop.fs.Path tempFilePath,
WriteSupport.WriteContext fileWriteContext)
Get FileEncryptionProperties object which is created by the implementation of this interface.
|
static EncryptionPropertiesFactory |
loadFactory(org.apache.hadoop.conf.Configuration conf)
Load EncryptionPropertiesFactory class specified by CRYPTO_FACTORY_CLASS_PROPERTY_NAME as the path in the
configuration
|
static final org.slf4j.Logger LOG
static final String CRYPTO_FACTORY_CLASS_PROPERTY_NAME
static EncryptionPropertiesFactory loadFactory(org.apache.hadoop.conf.Configuration conf)
conf - Configuration where user specifies the class pathBadConfigurationException - if the instantiation of the configured class failsFileEncryptionProperties getFileEncryptionProperties(org.apache.hadoop.conf.Configuration fileHadoopConfig, org.apache.hadoop.fs.Path tempFilePath, WriteSupport.WriteContext fileWriteContext) throws ParquetCryptoRuntimeException
fileHadoopConfig - Configuration that is used to pass the needed information, e.g. KMS uritempFilePath - File path of the parquet file being written.
Can be used for AAD prefix creation, key material management, etc.
Implementations must not presume the path is permanent,
as the file can be moved or renamed laterfileWriteContext - WriteContext to provide information like schema to build the FileEncryptionPropertiesParquetCryptoRuntimeException - if there is an exception while creating the objectCopyright © 2021 The Apache Software Foundation. All rights reserved.