Skip to main content

Profile

Struct Profile 

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

Static profile facts borrowing the original AC and owning decoded catalogues. A critical extension’s effect must still be enforced before using the AC.

Implementations§

Source§

impl<'r, 'a> Profile<'r, 'a>

Source

pub fn certificate(&self) -> &AttributeCertificate<'a>

Original AC, including exact signed bytes and unchanged attributes.

Source

pub fn audit_identity(&self) -> Option<&'a [u8]>

Opaque original audit identity, for the caller’s audit handling (§4.3.1). Parsing does not establish unlinkability or enforce an audit policy.

Source

pub fn targeting(&self) -> Option<&TargetInformation<'a>>

Present targeting is a mandatory effect check, not satisfied by parsing.

Source

pub fn proxying(&self) -> Option<&ProxyInfo<'a>>

Present proxying requires the authenticated sender/recipient/hop check.

Source

pub fn authority_key(&self) -> Option<&AuthorityKeyIdentifier<'a>>

Original authority key assertion, not proof that a supplied key belongs to it.

Source

pub fn access(&self) -> Option<&InfoAccess<'a>>

Original unresolved access locations; no acquisition occurred.

Source

pub fn distribution(&self) -> Option<&DistributionPoints<'a>>

Original unresolved single distribution point, if present.

Source

pub fn revocation(&self) -> Revocation

Written revocation scheme. Required never means a successful status check.

Source

pub fn holder_alternatives(&self) -> u8

Number of written Holder alternatives, for explicit protocol selection. Zero cannot authenticate a holder; several are not silently prioritized.

Trait Implementations§

Source§

impl<'r, 'a> Debug for Profile<'r, 'a>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'a> RevocationTarget<'a> for Profile<'_, 'a>

Source§

fn source_parser(&self) -> &'a Parser

Original parser for these fields, including deferred BER depth and limits.
Source§

fn issuer(&self) -> &Name<'a>

Original issuer DN.
Source§

fn serial(&self) -> Integer<'a>

Original arbitrary-width serial.
Source§

fn extensions(&self) -> Option<&Extensions<'a>>

Original extension catalogue, absent where the schema omitted it.
Source§

fn kind(&self) -> TargetKind

Actual schema category.
Source§

fn revocation_scheme(&self) -> RevocationScheme

Written scheme, never inferred from short validity or absent URLs.
Source§

fn encoded(&self) -> &'a [u8] ⓘ

Whole original encoding used to bind evidence contributors.
Source§

fn span(&self) -> Span

Honest source enclosure for processing failures.
Source§

fn execution_in<'op, W>(&'op self, work: &'op W) -> Execution<'op>
where 'a: 'op, W: Work,

Borrow the original source ceiling and current operation.

Auto Trait Implementations§

§

impl<'r, 'a> !Freeze for Profile<'r, 'a>

§

impl<'r, 'a> !RefUnwindSafe for Profile<'r, 'a>

§

impl<'r, 'a> !Send for Profile<'r, 'a>

§

impl<'r, 'a> !Sync for Profile<'r, 'a>

§

impl<'r, 'a> !UnwindSafe for Profile<'r, 'a>

§

impl<'r, 'a> Unpin for Profile<'r, 'a>

§

impl<'r, 'a> UnsafeUnpin for Profile<'r, '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.