Skip to main content

PdfSigner

Trait PdfSigner 

Source
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§

Source

fn sign(&self, data: &[u8]) -> Result<Vec<u8>>

Sign a data blob and return the DER-encoded CMS SignedData.

Source

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".

Implementors§