pub struct ContentInfo<'a> { /* private fields */ }Expand description
The CMS ContentInfo envelope (RFC 5652 §3).
Its explicit content field is mandatory. Detached SignedData instead omits
the inner Encapsulated eContent (RFC 5652 §5.2). This type does not use
the older PKCS#7 optional outer-content grammar from RFC 2315 §7.
Implementations§
Source§impl<'a> ContentInfo<'a>
impl<'a> ContentInfo<'a>
Sourcepub fn read(reader: &mut Reader<'a>) -> Result<(Self, Reader<'a>)>
pub fn read(reader: &mut Reader<'a>) -> Result<(Self, Reader<'a>)>
Reads one complete envelope, refusing bytes after that envelope.
The returned reader produced the content element and retains the same parser budget, execution account, diagnostic path and inherited depth. It is used directly by the selected content schema; no encode/reparse adapter or replacement parser is created.
Sourcepub fn read_element(
parent: &Reader<'a>,
element: &Element<'a>,
) -> Result<(Self, Reader<'a>)>
pub fn read_element( parent: &Reader<'a>, element: &Element<'a>, ) -> Result<(Self, Reader<'a>)>
Reads an embedded envelope from its original producing parent.
Unlike Self::read, surrounding siblings belong to the enclosing
schema and are not refused. Envelope components themselves remain exact.
Sourcepub fn kind(&self) -> Oid<'a>
pub fn kind(&self) -> Oid<'a>
The original content type identifier, without an application interpretation.