pub struct Parsed<'v, 's, D, G> { /* private fields */ }Expand description
One parse of every retained material stream. Models borrow the actual Validation owner; no second DER grammar or copied certificate is introduced.
Implementations§
Source§impl<'v, D: Copy + Eq, G: Copy + Eq> Parsed<'v, '_, D, G>
impl<'v, D: Copy + Eq, G: Copy + Eq> Parsed<'v, '_, D, G>
Sourcepub fn all_vri_material_in_dss(&self) -> bool
pub fn all_vri_material_in_dss(&self) -> bool
Historical VRI inclusion independently of individual value syntax.
Sourcepub fn values(&self) -> &[Value<'v>]
pub fn values(&self) -> &[Value<'v>]
All parsed values in the immutable owning Validation item order.
Sourcepub fn all_values_readable(&self) -> bool
pub fn all_values_readable(&self) -> bool
Every known whole value and basic OCSP body was readable. This is independent of successful wire status, authentication or freshness.
Sourcepub fn index<'q, 'operation, S: RangeSource<Document = D, Generation = G>>(
&'q self,
signature: Signature<'_, '_, D, G>,
query: &Query<'operation, '_, S>,
) -> Result<MaterialIndex<'q, D, G, Execution<'operation>>, IndexError<Node>>where
'v: 'q,
pub fn index<'q, 'operation, S: RangeSource<Document = D, Generation = G>>(
&'q self,
signature: Signature<'_, '_, D, G>,
query: &Query<'operation, '_, S>,
) -> Result<MaterialIndex<'q, D, G, Execution<'operation>>, IndexError<Node>>where
'v: 'q,
Builds the common index from actual original occurrences, preserving the whole OCSP envelope and its independently parsed basic payload.
Source§impl<'v, D: Copy + Eq, G: Copy + Eq> Parsed<'v, '_, D, G>
impl<'v, D: Copy + Eq, G: Copy + Eq> Parsed<'v, '_, D, G>
Sourcepub fn bind_status_vri<'b, 'p, P: AsnDigest<'p>>(
&'b self,
item: usize,
provider: &'p P,
operation: &impl Work,
) -> Result<Option<StatusBinding<'b, 'v>>, StatusError<'b, P::Error>>
pub fn bind_status_vri<'b, 'p, P: AsnDigest<'p>>( &'b self, item: usize, provider: &'p P, operation: &impl Work, ) -> Result<Option<StatusBinding<'b, 'v>>, StatusError<'b, P::Error>>
Selects a status VRI by the SHA-1 of a primitive BER OCTET STRING containing its original signature octets (EN319142-1 §5.4.2.2(b)). The shortest definite length is also BER. No signature bytes are copied and no status envelope or signature is reparsed. https://www.etsi.org/deliver/etsi_en/319100_319199/31914201/01.02.01_60/en_31914201v010201p.pdf
§Panics
Panics if the retained original file extent is internally invalid.
Source§impl<'v, 's, D: Copy + Eq, G: Copy + Eq> Parsed<'v, 's, D, G>
impl<'v, 's, D: Copy + Eq, G: Copy + Eq> Parsed<'v, 's, D, G>
Sourcepub fn bind_signature_vri<'b, 'a, 'p, P: AsnDigest<'p>>(
&'b self,
root: &'b Container<'a, 's, D, G>,
provider: &'p P,
operation: &impl Work,
) -> Result<Option<Binding<'b, 'v, 'a, 's, D, G>>, BindingError<P::Error>>
pub fn bind_signature_vri<'b, 'a, 'p, P: AsnDigest<'p>>( &'b self, root: &'b Container<'a, 's, D, G>, provider: &'p P, operation: &impl Work, ) -> Result<Option<Binding<'b, 'v, 'a, 's, D, G>>, BindingError<P::Error>>
Selects this signature’s actual optional VRI. A named VRI for another signature remains in the source census but cannot bind to this root.