pub struct SigningCertificate<'a> { /* private fields */ }Expand description
One signing-certificate value, preserving the whole signed validation set. V1 and V2 values are evaluated independently (RFC5035 §2).
Implementations§
Source§impl<'a> SigningCertificate<'a>
impl<'a> SigningCertificate<'a>
Sourcepub fn read(
parent: &Reader<'a>,
element: &Element<'a>,
version: Version,
) -> Result<Self>
pub fn read( parent: &Reader<'a>, element: &Element<'a>, version: Version, ) -> Result<Self>
Reads the original value with inherited depth/local and aggregate work.
The first identifier must be readable to name the signer. Later malformed identifiers/policies remain original restrictions plus retained faults; no resource failure becomes a readable fault or an omitted restriction. This reading establishes neither certificate hash agreement nor trust.
Sourcepub fn certificates(&self) -> &[CertificateReading<'a>]
pub fn certificates(&self) -> &[CertificateReading<'a>]
First signer identity and all subsequent signed restrictions in order.
Sourcepub fn identifiers(&self) -> &[CertificateId<'a>]
pub fn identifiers(&self) -> &[CertificateId<'a>]
Flat readable identities referenced by the original-order catalogue.
Sourcepub fn signer(&self) -> &CertificateId<'a>
pub fn signer(&self) -> &CertificateId<'a>
The required first certificate identity, without a repeated lookup.
Sourcepub fn policies(&self) -> Option<&Element<'a>>
pub fn policies(&self) -> Option<&Element<'a>>
Original optional policy terms, including any separately reported fault.