pub enum PdfCredential<'a> {
Password(&'a [u8]),
Certificate {
cert_der: &'a [u8],
private_key_der: &'a [u8],
},
}Expand description
Caller-supplied credential for opening an encrypted PDF. Standard
security handlers authenticate by password; the public-key handler
(/Filter /Adobe.PubSec) authenticates by an X.509 certificate plus
its RSA private key. For unencrypted PDFs the credential is ignored
(the empty Password(b"") is the natural default).
Variants§
Trait Implementations§
Source§impl<'a> Clone for PdfCredential<'a>
impl<'a> Clone for PdfCredential<'a>
Source§fn clone(&self) -> PdfCredential<'a>
fn clone(&self) -> PdfCredential<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for PdfCredential<'a>
Auto Trait Implementations§
impl<'a> Freeze for PdfCredential<'a>
impl<'a> RefUnwindSafe for PdfCredential<'a>
impl<'a> Send for PdfCredential<'a>
impl<'a> Sync for PdfCredential<'a>
impl<'a> Unpin for PdfCredential<'a>
impl<'a> UnsafeUnpin for PdfCredential<'a>
impl<'a> UnwindSafe for PdfCredential<'a>
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