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>
impl<'a> SvceAuthInfo<'a>
Sourcepub fn read(parent: &mut ScopedReader<'a, '_>) -> Result<Self>
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.
Sourcepub fn read_element(
parent: &ScopedReader<'a, '_>,
element: &Element<'a>,
) -> Result<Self>
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.
Sourcepub fn read_attribute<W: Work>(
attribute: &Attribute<'a>,
work: &W,
) -> Result<OwnedVec<Self>>
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.
Sourcepub fn element(&self) -> Element<'a>
pub fn element(&self) -> Element<'a>
Original whole value. It may contain sensitive authentication data.
Sourcepub fn service(&self) -> &GeneralName<'a>
pub fn service(&self) -> &GeneralName<'a>
Original decoded service name; no resolution or authentication is done.
Sourcepub fn service_element(&self) -> Element<'a>
pub fn service_element(&self) -> Element<'a>
Original service CHOICE encoding and source range.
Sourcepub fn ident(&self) -> &GeneralName<'a>
pub fn ident(&self) -> &GeneralName<'a>
Original decoded holder identifier, not a proven identity.
Sourcepub fn ident_element(&self) -> Element<'a>
pub fn ident_element(&self) -> Element<'a>
Original holder identifier CHOICE encoding and source range.
Sourcepub fn auth_info(&self) -> Option<&'a [u8]>
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.
Sourcepub fn auth_info_element(&self) -> Option<Element<'a>>
pub fn auth_info_element(&self) -> Option<Element<'a>>
Original optional OCTET STRING, including its physical source range.