MCPcopy Create free account
hub / github.com/apache/arrow / GetFileDecryptionProperties

Method GetFileDecryptionProperties

cpp/src/parquet/encryption/crypto_factory.cc:173–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173std::shared_ptr<FileDecryptionProperties> CryptoFactory::GetFileDecryptionProperties(
174 const KmsConnectionConfig& kms_connection_config,
175 const DecryptionConfiguration& decryption_config, const std::string& file_path,
176 const std::shared_ptr<::arrow::fs::FileSystem>& file_system) {
177 auto key_retriever = std::make_shared<FileKeyUnwrapper>(
178 key_toolkit_, kms_connection_config, decryption_config.cache_lifetime_seconds,
179 file_path, file_system);
180
181 return FileDecryptionProperties::Builder()
182 .key_retriever(std::move(key_retriever))
183 ->plaintext_files_allowed()
184 ->build();
185}
186
187void CryptoFactory::RotateMasterKeys(
188 const KmsConnectionConfig& kms_connection_config,

Callers 6

MakeReaderPropertiesFunction · 0.80
ASSERT_OK_AND_ASSIGNFunction · 0.80
TEST_FFunction · 0.80

Calls 3

key_retrieverMethod · 0.80
BuilderFunction · 0.50
buildMethod · 0.45

Tested by 4

ASSERT_OK_AND_ASSIGNFunction · 0.64
TEST_FFunction · 0.64