pub trait PdfSigner: Send + Sync {
// Required methods
fn sign(&self, data: &[u8]) -> Result<Vec<u8>>;
fn certificate_chain(&self) -> &[Vec<u8>];
}Expand description
Pluggable digital signer.
Required Methods§
Sourcefn sign(&self, data: &[u8]) -> Result<Vec<u8>>
fn sign(&self, data: &[u8]) -> Result<Vec<u8>>
Sign a data blob and return the DER-encoded CMS SignedData.
Sourcefn certificate_chain(&self) -> &[Vec<u8>]
fn certificate_chain(&self) -> &[Vec<u8>]
DER-encoded certificate chain, leaf first.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".