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

Function plaintext_files_allowed

cpp/src/parquet/encryption/encryption.h:272–275  ·  view source on GitHub ↗

By default, reading plaintext (unencrypted) files is not allowed when using a decryptor - in order to detect files that were not encrypted by mistake. However, the default behavior can be overridden by calling this method. The caller should use then a different method to ensure encryption of files with sensitive data.

Source from the content-addressed store, hash-verified

270 /// The caller should use then a different method to ensure encryption
271 /// of files with sensitive data.
272 Builder* plaintext_files_allowed() {
273 plaintext_files_allowed_ = true;
274 return this;
275 }
276
277 std::shared_ptr<FileDecryptionProperties> build() {
278 return std::shared_ptr<FileDecryptionProperties>(new FileDecryptionProperties(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected