pub type TbsCertificate = TbsCertificateInner<Rfc5280>;
Expand description
X.509 TbsCertificate
as defined in [RFC 5280 Section 4.1]
Aliased Type§
struct TbsCertificate {
pub version: Version,
pub serial_number: SerialNumber,
pub signature: AlgorithmIdentifier<Any>,
pub issuer: RdnSequence,
pub validity: Validity,
pub subject: RdnSequence,
pub subject_public_key_info: SubjectPublicKeyInfo<Any, BitString>,
pub issuer_unique_id: Option<BitString>,
pub subject_unique_id: Option<BitString>,
pub extensions: Option<Vec<Extension>>,
}
Fields§
§version: Version
The certificate version
Note that this value defaults to Version 1 per the RFC. However,
fields such as issuer_unique_id
, subject_unique_id
and extensions
require later versions. Care should be taken in order to ensure
standards compliance.
serial_number: SerialNumber
§signature: AlgorithmIdentifier<Any>
§issuer: RdnSequence
§validity: Validity
§subject: RdnSequence
§subject_public_key_info: SubjectPublicKeyInfo<Any, BitString>
§issuer_unique_id: Option<BitString>
§subject_unique_id: Option<BitString>
§extensions: Option<Vec<Extension>>
Implementations
Source§impl<P: Profile> TbsCertificateInner<P>
impl<P: Profile> TbsCertificateInner<P>
Sourcepub fn get<'a, T: Decode<'a> + AssociatedOid>(
&'a self,
) -> Result<Option<(bool, T)>, Error>
pub fn get<'a, T: Decode<'a> + AssociatedOid>( &'a self, ) -> Result<Option<(bool, T)>, Error>
Decodes a single extension
Returns an error if multiple of these extensions is present. Returns
Ok(None)
if the extension is not present. Returns a decoding error
if decoding failed. Otherwise returns the extension.
Trait Implementations
Source§impl<P: Clone + Profile> Clone for TbsCertificateInner<P>
impl<P: Clone + Profile> Clone for TbsCertificateInner<P>
Source§fn clone(&self) -> TbsCertificateInner<P>
fn clone(&self) -> TbsCertificateInner<P>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more