Skip to main content

Request

Struct Request 

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

A syntactically conforming original TimeStampReq.

Algorithm support/width, extension recognition, replay history and trust are separate decisions. Unlike token inspection, request syntax faults are refused, not silently repaired or passed to the selected provider.

Implementations§

Source§

impl<'a> Request<'a>

Source

pub fn read(parent: &Reader<'a>, element: &Element<'a>) -> Result<Self>

Reads the original SEQUENCE with inherited depth/current execution. BER is allowed by the producing reader; the caller selects encoding. RFC3161 §2.4.1 defines version 1 and the ordered optional fields. https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.1

Source

pub fn imprint(&self) -> &MessageImprint<'a>

Full original requested imprint, including original parameter provenance.

Source

pub fn policy(&self) -> Option<Oid<'a>>

Requested policy, absent when none was specified.

Source

pub fn nonce(&self) -> Option<Integer<'a>>

Original minimal INTEGER view; no nonce bytes are fabricated.

Source

pub fn cert_req(&self) -> bool

RFC3161 schema default is false when the field is absent.

Source

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

All request extensions require server recognition, not only critical ones.

Source

pub fn span(&self) -> Span

Whole original request span, in its producing source coordinates.

Source

pub fn same_session(&self, parent: &Reader<'_>) -> bool

Original session identity, independent of shared account identity.

Source§

impl<'a> Request<'a>

Source

pub fn unrecognized_extensions<E>( &self, parent: &Reader<'_>, recognizes: impl FnMut(&Extension<'a>, &Execution<'_>) -> Result<bool, E>, ) -> Result<OwnedVec<Oid<'a>>, RecognitionError<E>>

Reports every requested extension the supplied handler does not recognize.

RFC3161 §2.4.1 requires server recognition regardless of criticality. This is not a certificate-understands or token-critical-only query. The common fallible catalogue iterator admits each metadata access; the handler must independently admit its data-dependent decoding work. No empty/partial successful list is returned after processing or handler refusal. Recognition itself does not grant policy/algorithm permission. https://www.rfc-editor.org/rfc/rfc3161#section-2.4.1

Trait Implementations§

Source§

impl<'a> Debug for Request<'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 Request<'a>

§

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

§

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

§

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

§

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

§

impl<'a> Unpin for Request<'a>

§

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