pub struct DecryptionPropertiesBuilderWithRetriever { /* private fields */ }Expand description
Builder for FileDecryptionProperties that uses a KeyRetriever
See the KeyRetriever documentation for example usage.
Implementations§
Source§impl DecryptionPropertiesBuilderWithRetriever
impl DecryptionPropertiesBuilderWithRetriever
Sourcepub fn new(
key_retriever: Arc<dyn KeyRetriever>,
) -> DecryptionPropertiesBuilderWithRetriever
pub fn new( key_retriever: Arc<dyn KeyRetriever>, ) -> DecryptionPropertiesBuilderWithRetriever
Create a new DecryptionPropertiesBuilderWithRetriever by providing a KeyRetriever that
can be used to get decryption keys based on key 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.
Disable verification of footer tags for files that use plaintext footers. Signature verification is enabled by default.
Auto Trait Implementations§
impl !RefUnwindSafe for DecryptionPropertiesBuilderWithRetriever
impl !UnwindSafe for DecryptionPropertiesBuilderWithRetriever
impl Freeze for DecryptionPropertiesBuilderWithRetriever
impl Send for DecryptionPropertiesBuilderWithRetriever
impl Sync for DecryptionPropertiesBuilderWithRetriever
impl Unpin for DecryptionPropertiesBuilderWithRetriever
impl UnsafeUnpin for DecryptionPropertiesBuilderWithRetriever
Blanket Implementations§
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