Skip to main content

SvceAuthInfo

Struct SvceAuthInfo 

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

A complete DER SvceAuthInfo, borrowing original input. Name metadata retains its capacity charge independently of the shorter query. Debug prints only source ranges, never names or potential credential bytes.

Implementations§

Source§

impl<'a> SvceAuthInfo<'a>

Source

pub fn read(parent: &mut ScopedReader<'a, '_>) -> Result<Self>

Reads exactly one standalone value. Optional authInfo is permitted by this syntax; Self::read_attribute enforces its registered placement.

Source

pub fn read_element( parent: &ScopedReader<'a, '_>, element: &Element<'a>, ) -> Result<Self>

Reads an original whole value as DER (RFC5755 §4.1), preserving its source offsets, depth and current execution, without a replacement Parser.

Source

pub fn read_attribute<W: Work>( attribute: &Attribute<'a>, work: &W, ) -> Result<OwnedVec<Self>>

Reads every value of a registered authenticationInfo or accessIdentity Attribute. Both permit multiple values; empty catalogues refuse. All original values are checked before success, with no partial catalogue. accessIdentity forbids authInfo; standalone syntax does not infer that registration. This establishes neither authentication nor authorization.

Source

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

Original whole value. It may contain sensitive authentication data.

Source

pub fn service(&self) -> &GeneralName<'a>

Original decoded service name; no resolution or authentication is done.

Source

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

Original service CHOICE encoding and source range.

Source

pub fn ident(&self) -> &GeneralName<'a>

Original decoded holder identifier, not a proven identity.

Source

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

Original holder identifier CHOICE encoding and source range.

Source

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

Original opaque authentication bytes, without interpreting or copying them. None differs from a present empty OCTET STRING.

Source

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

Original optional OCTET STRING, including its physical source range.

Trait Implementations§

Source§

impl Debug for SvceAuthInfo<'_>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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

§

impl<'a> RefUnwindSafe for SvceAuthInfo<'a>

§

impl<'a> Send for SvceAuthInfo<'a>

§

impl<'a> Sync for SvceAuthInfo<'a>

§

impl<'a> Unpin for SvceAuthInfo<'a>

§

impl<'a> UnsafeUnpin for SvceAuthInfo<'a>

§

impl<'a> UnwindSafe for SvceAuthInfo<'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.