Skip to main content

ProxyInfo

Struct ProxyInfo 

Source
pub struct ProxyInfo<'a> { /* private fields */ }
Expand description

Complete proxy constraints, sharing the targeting decoder and original groups.

Implementations§

Source§

impl<'a> ProxyInfo<'a>

Source

pub fn read<W: Work>(extension: &Extension<'a>, work: &W) -> Result<Self>

Reads the registered extension using the existing complete Target kernel. Late malformed or prohibited alternatives cannot disappear on early match.

Source

pub fn element(&self) -> Element<'a>

Original whole extension-value SEQUENCE.

Source

pub fn groups(&self) -> &[Group<'a>]

Original sets with flat target ranges. Proxy matching preserves these boundaries, unlike recipient-only targeting’s union.

Source

pub fn targets(&self) -> &[Target<'a>]

Original flat target catalogue; reading it is not a proxy check.

Source

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

Original prohibited alternatives, retained for inspection.

Source

pub fn is_critical(&self) -> bool

Written extension criticality, not inferred from its OID.

Source

pub fn check<W: Work, E>( &self, sender: Sender<'_, '_>, recipient: &[GeneralName<'_>], intermediates: &[&[GeneralName<'_>]], work: &W, membership: impl FnMut(Subject, &GeneralName<'a>, &Execution<'_>) -> Result<Membership, E>, ) -> Result<Decision, CheckError<E>>

Checks RFC5755 §7.2’s common-set rule for all supplied participants. The protocol must supply a trustworthy COMPLETE preceding-hop list; omitting a hop here cannot prove that it was allowed. Holder bypasses only the sender membership check, never recipient or earlier proxies. Unknown membership differs from a completed negative; processing and callback errors remain terminal, with their original causes. The membership callback must admit its own data-dependent work through the supplied execution. Its external side effects cannot be rolled back if a later participant or set refuses.

Trait Implementations§

Source§

impl<'a> Debug for ProxyInfo<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> !Freeze for ProxyInfo<'a>

§

impl<'a> !RefUnwindSafe for ProxyInfo<'a>

§

impl<'a> !Send for ProxyInfo<'a>

§

impl<'a> !Sync for ProxyInfo<'a>

§

impl<'a> !UnwindSafe for ProxyInfo<'a>

§

impl<'a> Unpin for ProxyInfo<'a>

§

impl<'a> UnsafeUnpin for ProxyInfo<'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.