x509_cert::certificate

Type Alias Certificate

Source
pub type Certificate = CertificateInner<Rfc5280>;
Expand description

X.509 certificates are defined in RFC 5280 Section 4.1.

Aliased Type§

struct Certificate {
    pub tbs_certificate: TbsCertificateInner,
    pub signature_algorithm: AlgorithmIdentifier<Any>,
    pub signature: BitString,
}

Fields§

§tbs_certificate: TbsCertificateInner§signature_algorithm: AlgorithmIdentifier<Any>§signature: BitString

Trait Implementations

Source§

impl<P: Clone + Profile> Clone for CertificateInner<P>

Source§

fn clone(&self) -> CertificateInner<P>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<P: Debug + Profile> Debug for CertificateInner<P>

Source§

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

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

impl<'__der_lifetime, P: Profile> DecodeValue<'__der_lifetime> for CertificateInner<P>

Source§

fn decode_value<R: Reader<'__der_lifetime>>( reader: &mut R, header: Header, ) -> Result<Self>

Attempt to decode this message using the provided Reader.
Source§

impl<'__der_lifetime, P: Profile> EncodeValue for CertificateInner<P>

Source§

fn value_len(&self) -> Result<Length>

Compute the length of this value (sans [Tag]+Length header) when encoded as ASN.1 DER.
Source§

fn encode_value(&self, writer: &mut impl Writer) -> Result<()>

Encode value (sans [Tag]+Length header) as ASN.1 DER using the provided Writer.
Source§

fn header(&self) -> Result<Header, Error>
where Self: Tagged,

Get the Header used to encode this value.
Source§

impl<P: PartialEq + Profile> PartialEq for CertificateInner<P>

Source§

fn eq(&self, other: &CertificateInner<P>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ValueOrd for CertificateInner

Source§

fn value_cmp(&self, other: &Self) -> Result<Ordering>

Return an Ordering between value portion of TLV-encoded self and other when serialized as ASN.1 DER.
Source§

impl<P: Eq + Profile> Eq for CertificateInner<P>

Source§

impl<'__der_lifetime, P: Profile> Sequence<'__der_lifetime> for CertificateInner<P>

Source§

impl<P: Profile> StructuralPartialEq for CertificateInner<P>