pub struct DecryptionPropertiesBuilder { /* private fields */ }Expand description
Builder for FileDecryptionProperties
See FileDecryptionProperties for example usage.
Implementations§
Source§impl DecryptionPropertiesBuilder
impl DecryptionPropertiesBuilder
Sourcepub fn new(footer_key: Vec<u8>) -> DecryptionPropertiesBuilder
pub fn new(footer_key: Vec<u8>) -> DecryptionPropertiesBuilder
Create a new DecryptionPropertiesBuilder builder that will use the provided key to
decrypt footer metadata.
Sourcepub fn build(self) -> Result<Arc<FileDecryptionProperties>>
pub fn build(self) -> Result<Arc<FileDecryptionProperties>>
Finalize the builder and return created FileDecryptionProperties
Sourcepub fn with_aad_prefix(self, value: Vec<u8>) -> Self
pub fn with_aad_prefix(self, value: Vec<u8>) -> Self
Specify the expected AAD prefix to be used for decryption. This must be set if the file was written with an AAD prefix and the prefix is not stored in the file metadata.
Sourcepub fn with_column_key(self, column_name: &str, decryption_key: Vec<u8>) -> Self
pub fn with_column_key(self, column_name: &str, decryption_key: Vec<u8>) -> Self
Specify the decryption key to use for a column
Sourcepub fn with_column_keys(
self,
column_names: Vec<&str>,
keys: Vec<Vec<u8>>,
) -> Result<Self>
pub fn with_column_keys( self, column_names: Vec<&str>, keys: Vec<Vec<u8>>, ) -> Result<Self>
Specify multiple column decryption keys
Disable verification of footer tags for files that use plaintext footers. Signature verification is enabled by default.
Auto Trait Implementations§
impl Freeze for DecryptionPropertiesBuilder
impl RefUnwindSafe for DecryptionPropertiesBuilder
impl Send for DecryptionPropertiesBuilder
impl Sync for DecryptionPropertiesBuilder
impl Unpin for DecryptionPropertiesBuilder
impl UnsafeUnpin for DecryptionPropertiesBuilder
impl UnwindSafe for DecryptionPropertiesBuilder
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more