Skip to main content

HolderPath

Struct HolderPath 

Source
pub struct HolderPath<'p, 'a> { /* private fields */ }
Expand description

One supplied holder PKC path, checked against its explicitly chosen anchor. Protocol proof of possession and PKC revocation remain caller obligations.

Implementations§

Source§

impl<'p, 'a> HolderPath<'p, 'a>

Source

pub fn certificates(&self) -> &[&Certificate<'a>]

Original leaf-first path; its first element is the holder PKC.

Source

pub fn facts(&self) -> &ValidationFacts<'a>

Actual effective key and independently owned policy facts.

Source

pub fn anchor(&self) -> EffectiveAnchor<'a>

Explicitly selected trust boundary, not a discovered self-signed root.

Source

pub fn interval(&self) -> Interval

Complete interval checked by this original operation.

Source

pub fn validate<V, T, R, W>( certificates: &'p [&'a Certificate<'a>], anchor: EffectiveAnchor<'a>, context: &ValidationContext<'a, '_, V, T, R, W>, ) -> HolderResult<'p, 'a, <V as Verify<W>>::Error, R::Error>
where W: Work, for<'op> V: Verify<W> + Verify<Execution<'op>, Error = <V as Verify<W>>::Error>, T: Watch, R: Recognizer<W>,

Validate a supplied holder path through the same PKIX core as AA paths. The anchor is outside the supplied prospective path. Every provider call receives the original signature ceiling as well as the current Work.

Trait Implementations§

Source§

impl<'p, 'a> Debug for HolderPath<'p, 'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'p, 'a> !Freeze for HolderPath<'p, 'a>

§

impl<'p, 'a> !RefUnwindSafe for HolderPath<'p, 'a>

§

impl<'p, 'a> !Send for HolderPath<'p, 'a>

§

impl<'p, 'a> !Sync for HolderPath<'p, 'a>

§

impl<'p, 'a> !UnwindSafe for HolderPath<'p, 'a>

§

impl<'p, 'a> Unpin for HolderPath<'p, 'a>

§

impl<'p, 'a> UnsafeUnpin for HolderPath<'p, 'a>

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.