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
sourceimpl<'a> X509CertificationRequestInfo<'a>
impl<'a> X509CertificationRequestInfo<'a>
sourcepub fn attributes(&self) -> &[X509CriAttribute<'_>]
pub fn attributes(&self) -> &[X509CriAttribute<'_>]
Get the CRL entry extensions.
sourcepub fn iter_attributes(&self) -> impl Iterator<Item = &X509CriAttribute<'_>>
pub fn iter_attributes(&self) -> impl Iterator<Item = &X509CriAttribute<'_>>
Returns an iterator over the CRL entry extensions
sourcepub fn find_attribute(&self, oid: &Oid<'_>) -> Option<&X509CriAttribute<'_>>
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.
sourcepub fn attributes_map(
&self
) -> Result<HashMap<Oid<'_>, &X509CriAttribute<'_>>, X509Error>
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
sourceimpl<'a> Debug for X509CertificationRequestInfo<'a>
impl<'a> Debug for X509CertificationRequestInfo<'a>
sourceimpl<'a> FromDer<'a, X509Error> for X509CertificationRequestInfo<'a>
impl<'a> FromDer<'a, X509Error> for X509CertificationRequestInfo<'a>
CertificationRequestInfo ::= SEQUENCE { version INTEGER { v1(0) } (v1,...), subject Name, subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }}, attributes [0] Attributes{{ CRIAttributes }} }
sourcefn from_der(i: &'a [u8]) -> X509Result<'_, Self>
fn from_der(i: &'a [u8]) -> X509Result<'_, Self>
Attempt to parse input bytes into a DER object (enforcing constraints)
sourceimpl<'a> PartialEq<X509CertificationRequestInfo<'a>> for X509CertificationRequestInfo<'a>
impl<'a> PartialEq<X509CertificationRequestInfo<'a>> for X509CertificationRequestInfo<'a>
sourcefn eq(&self, other: &X509CertificationRequestInfo<'a>) -> bool
fn eq(&self, other: &X509CertificationRequestInfo<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &X509CertificationRequestInfo<'a>) -> bool
fn ne(&self, other: &X509CertificationRequestInfo<'a>) -> bool
This method tests for !=
.
impl<'a> StructuralPartialEq for X509CertificationRequestInfo<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for X509CertificationRequestInfo<'a>
impl<'a> Send for X509CertificationRequestInfo<'a>
impl<'a> Sync for X509CertificationRequestInfo<'a>
impl<'a> Unpin for X509CertificationRequestInfo<'a>
impl<'a> UnwindSafe for X509CertificationRequestInfo<'a>
Blanket Implementations
sourceimpl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
sourceimpl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more