Skip to main content

OcspEnvelopeReference

Struct OcspEnvelopeReference 

Source
pub struct OcspEnvelopeReference<'r, 'e, 's, 'd, N, D, G> { /* private fields */ }
Expand description

Identifier and optional digest checked against the SAME signed envelope. This does not prove authorization, target status, actual use or trust.

Implementations§

Source§

impl<'r, 'e, 's, 'd, N, D, G> OcspEnvelopeReference<'r, 'e, 's, 'd, N, D, G>

Source

pub fn references(&self) -> &'r ReferenceProperty<N, D, G>

Original property and its immutable source/generation.

Source

pub fn entry(&self) -> usize

Original reference ordinal within that property.

Source

pub fn actual(&self) -> OcspReferenceInput<'e, 's, 'd>

Same whole envelope, authenticated body and signer used by both checks.

Source

pub fn identity(&self) -> &Located<OcspReferenceIdentity, N, D, G>

Original identifier location and all readable responder/time facts.

Source

pub fn digest(&self) -> Option<ReferenceDigest>

None means mandatory identifier syntax was malformed/unsupported, so digest processing was not attempted. IdentifierOnly means no digest was written; neither is a successful whole-envelope digest agreement.

Source

pub fn identifies_response(&self) -> bool

Mandatory responder/time agree with this response, and its digest agrees if written. Annex A.1.2 makes the digest optional (SHOULD): an identifier-only reference can identify this response but does not bind its whole contents against substitution. Inspect Self::digest to retain that distinction; this proves no authority, status, trust or grade.

Auto Trait Implementations§

§

impl<'r, 'e, 's, 'd, N, D, G> !RefUnwindSafe for OcspEnvelopeReference<'r, 'e, 's, 'd, N, D, G>

§

impl<'r, 'e, 's, 'd, N, D, G> !Send for OcspEnvelopeReference<'r, 'e, 's, 'd, N, D, G>

§

impl<'r, 'e, 's, 'd, N, D, G> !Sync for OcspEnvelopeReference<'r, 'e, 's, 'd, N, D, G>

§

impl<'r, 'e, 's, 'd, N, D, G> !UnwindSafe for OcspEnvelopeReference<'r, 'e, 's, 'd, N, D, G>

§

impl<'r, 'e, 's, 'd, N, D, G> Forget for OcspEnvelopeReference<'r, 'e, 's, 'd, N, D, G>

§

impl<'r, 'e, 's, 'd, N, D, G> Freeze for OcspEnvelopeReference<'r, 'e, 's, 'd, N, D, G>

§

impl<'r, 'e, 's, 'd, N, D, G> Unpin for OcspEnvelopeReference<'r, 'e, 's, 'd, N, D, G>
where &'r ReferenceProperty<N, D, G>: Unpin, Located<OcspReferenceIdentity, N, D, G>: Unpin,

§

impl<'r, 'e, 's, 'd, N, D, G> UnsafeUnpin for OcspEnvelopeReference<'r, 'e, 's, 'd, N, D, G>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.