pub struct X509CertificationRequestInfo<'a> {
    pub version: X509Version,
    pub subject: X509Name<'a>,
    pub subject_pki: SubjectPublicKeyInfo<'a>,
    pub raw: &'a [u8],
    /* private fields */
}
Expand description

Certification Request Info structure

Certification request information is defined by the following ASN.1 structure:

CertificationRequestInfo ::= SEQUENCE {
     version       INTEGER { v1(0) } (v1,...),
     subject       Name,
     subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
     attributes    [0] Attributes{{ CRIAttributes }}
}

version is the version number; subject is the distinguished name of the certificate subject; subject_pki contains information about the public key being certified, and attributes is a collection of attributes providing additional information about the subject of the certificate.

Fields§

§version: X509Version§subject: X509Name<'a>§subject_pki: SubjectPublicKeyInfo<'a>§raw: &'a [u8]

Implementations§

source§

impl<'a> X509CertificationRequestInfo<'a>

source

pub fn attributes(&self) -> &[X509CriAttribute<'_>]

Get the CRL entry extensions.

source

pub fn iter_attributes(&self) -> impl Iterator<Item = &X509CriAttribute<'_>>

Returns an iterator over the CRL entry extensions

source

pub fn find_attribute(&self, oid: &Oid<'_>) -> Option<&X509CriAttribute<'_>>

Searches for a CRL entry extension with the given Oid.

Note: if there are several extensions with the same Oid, the first one is returned.

source

pub fn attributes_map( &self ) -> Result<HashMap<Oid<'_>, &X509CriAttribute<'_>>, X509Error>

Builds and returns a map of CRL entry extensions.

If an extension is present twice, this will fail and return DuplicateExtensions.

Trait Implementations§

source§

impl<'a> Debug for X509CertificationRequestInfo<'a>

source§

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

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

impl<'a> FromDer<'a, X509Error> for X509CertificationRequestInfo<'a>

CertificationRequestInfo ::= SEQUENCE {
     version       INTEGER { v1(0) } (v1,...),
     subject       Name,
     subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
     attributes    [0] Attributes{{ CRIAttributes }}
}
source§

fn from_der(i: &'a [u8]) -> X509Result<'_, Self>

Attempt to parse input bytes into a DER object (enforcing constraints)
source§

impl<'a> PartialEq for X509CertificationRequestInfo<'a>

source§

fn eq(&self, other: &X509CertificationRequestInfo<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> StructuralPartialEq for X509CertificationRequestInfo<'a>

Auto Trait Implementations§

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<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

source§

fn implicit( self, class: Class, constructed: bool, tag: u32 ) -> TaggedParser<'a, Implicit, Self, E>

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>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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.