pyarrow.parquet.encryption.CryptoFactory#

classpyarrow.parquet.encryption.CryptoFactory(kms_client_factory)#

Bases:_Weakrefable

A factory that produces the low-level FileEncryptionProperties andFileDecryptionProperties objects, from the high-level parameters.

__init__()#

Create CryptoFactory.

Parameters:
kms_client_factoryacallable()thatacceptsKmsConnectionConfig

and returns a KmsClient

Methods

__init__

Create CryptoFactory.

file_decryption_properties(self, ...)

Create file decryption properties.

file_encryption_properties(self, ...)

Create file encryption properties.

remove_cache_entries_for_all_tokens(self)

remove_cache_entries_for_token(self, ...)

file_decryption_properties(self,KmsConnectionConfigkms_connection_config,DecryptionConfigurationdecryption_config=None)#

Create file decryption properties.

Parameters:
kms_connection_configKmsConnectionConfig

Configuration of connection to KMS

decryption_configDecryptionConfiguration, defaultNone

Configuration of the decryption, such as cache timeout.Can be None.

Returns:
file_decryption_propertiesFileDecryptionProperties

File decryption properties.

file_encryption_properties(self,KmsConnectionConfigkms_connection_config,EncryptionConfigurationencryption_config)#

Create file encryption properties.

Parameters:
kms_connection_configKmsConnectionConfig

Configuration of connection to KMS

encryption_configEncryptionConfiguration

Configuration of the encryption, such as which columns to encrypt

Returns:
file_encryption_propertiesFileEncryptionProperties

File encryption properties.

remove_cache_entries_for_all_tokens(self)#
remove_cache_entries_for_token(self,access_token)#