pub struct SignedData<'a> { /* private fields */ }Expand description
Original CMS SignedData with independently accounted metadata and faults.
Implementations§
Source§impl<'a> SignedData<'a>
impl<'a> SignedData<'a>
Sourcepub fn read(parser: &'a Parser, encoded: &'a [u8], base: u64) -> Result<Self>
pub fn read(parser: &'a Parser, encoded: &'a [u8], base: u64) -> Result<Self>
Reads one entire CMS ContentInfo and its SignedData using the same parser.
Sourcepub fn read_element(parent: &Reader<'a>, element: &Element<'a>) -> Result<Self>
pub fn read_element(parent: &Reader<'a>, element: &Element<'a>) -> Result<Self>
Reads an original embedded SignedData, preserving enclosing depth/work.
Sourcepub fn required_version(&self) -> u64
pub fn required_version(&self) -> u64
Version independently required by the encoded choices.
Sourcepub fn digest_algorithms(&self) -> &[AlgorithmIdentifier<'a>]
pub fn digest_algorithms(&self) -> &[AlgorithmIdentifier<'a>]
Original advertised digest algorithms; provider resolution is separate. RFC5652 §§5.1, 5.3 permit zero entries and do not require recipients to refuse an unlisted signer digest. These advertisements never replace the original signer algorithm; stricter catalogue acceptance is caller policy. https://www.rfc-editor.org/rfc/rfc5652#section-5.1
Sourcepub fn content(&self) -> &Encapsulated<'a>
pub fn content(&self) -> &Encapsulated<'a>
Original attached or absent content.
Sourcepub fn certificate_choices(&self) -> &[CertificateChoice<'a>]
pub fn certificate_choices(&self) -> &[CertificateChoice<'a>]
Certificate choices in their original order.
Sourcepub fn certificates(&self) -> &[Certificate<'a>]
pub fn certificates(&self) -> &[Certificate<'a>]
Parsed X.509 certificates, in the order referenced by X509 choices.
Sourcepub fn certificate_field(&self) -> Option<Span>
pub fn certificate_field(&self) -> Option<Span>
Original presence of the certificate field, including an empty written set.
Sourcepub fn revocation_field(&self) -> Option<Span>
pub fn revocation_field(&self) -> Option<Span>
Original presence of the revocation field, including an empty written set.
Sourcepub fn revocations(&self) -> &[Element<'a>]
pub fn revocations(&self) -> &[Element<'a>]
Original revocation choices, not implicitly authenticated or fetched.
Sourcepub fn signers(&self) -> &[SignerInfo<'a>]
pub fn signers(&self) -> &[SignerInfo<'a>]
Independent signers in their original order, without an all-signers verdict.