Struct c509_certificate::tbs_cert::TbsCert
source · pub struct TbsCert {
c509_certificate_type: u8,
certificate_serial_number: UnwrappedBigUint,
issuer: Name,
validity_not_before: Time,
validity_not_after: Time,
subject: Name,
subject_public_key_algorithm: SubjectPubKeyAlgorithm,
subject_public_key: Vec<u8>,
extensions: Extensions,
issuer_signature_algorithm: IssuerSignatureAlgorithm,
}
Expand description
A struct represents a To Be Signed Certificate (TBS Certificate).
Fields§
§c509_certificate_type: u8
Certificate type.
certificate_serial_number: UnwrappedBigUint
Serial number of the certificate.
issuer: Name
Issuer
validity_not_before: Time
Validity not before.
validity_not_after: Time
Validity not after.
subject: Name
Subject
subject_public_key_algorithm: SubjectPubKeyAlgorithm
Subject Public Key Algorithm
subject_public_key: Vec<u8>
Subject Public Key value
extensions: Extensions
Extensions
issuer_signature_algorithm: IssuerSignatureAlgorithm
Issuer Signature Algorithm
Implementations§
source§impl TbsCert
impl TbsCert
sourcepub fn new(
c509_certificate_type: u8,
certificate_serial_number: UnwrappedBigUint,
issuer: Name,
validity_not_before: Time,
validity_not_after: Time,
subject: Name,
subject_public_key_algorithm: SubjectPubKeyAlgorithm,
subject_public_key: Vec<u8>,
extensions: Extensions,
issuer_signature_algorithm: IssuerSignatureAlgorithm,
) -> Self
pub fn new( c509_certificate_type: u8, certificate_serial_number: UnwrappedBigUint, issuer: Name, validity_not_before: Time, validity_not_after: Time, subject: Name, subject_public_key_algorithm: SubjectPubKeyAlgorithm, subject_public_key: Vec<u8>, extensions: Extensions, issuer_signature_algorithm: IssuerSignatureAlgorithm, ) -> Self
Create a new instance of TBS Certificate.
sourcepub fn get_c509_certificate_type(&self) -> u8
pub fn get_c509_certificate_type(&self) -> u8
Get the certificate type.
sourcepub fn get_certificate_serial_number(&self) -> &UnwrappedBigUint
pub fn get_certificate_serial_number(&self) -> &UnwrappedBigUint
Get the certificate serial number.
sourcepub fn get_issuer(&self) -> &Name
pub fn get_issuer(&self) -> &Name
Get the issuer.
sourcepub fn get_validity_not_before(&self) -> &Time
pub fn get_validity_not_before(&self) -> &Time
Get the validity not before.
sourcepub fn get_validity_not_after(&self) -> &Time
pub fn get_validity_not_after(&self) -> &Time
Get the validity not after.
sourcepub fn get_subject(&self) -> &Name
pub fn get_subject(&self) -> &Name
Get the subject.
sourcepub fn get_subject_public_key_algorithm(&self) -> &SubjectPubKeyAlgorithm
pub fn get_subject_public_key_algorithm(&self) -> &SubjectPubKeyAlgorithm
Get the subject public key algorithm.
sourcepub fn get_subject_public_key(&self) -> &[u8] ⓘ
pub fn get_subject_public_key(&self) -> &[u8] ⓘ
Get the subject public key.
sourcepub fn get_extensions(&self) -> &Extensions
pub fn get_extensions(&self) -> &Extensions
Get the extensions.
sourcepub fn get_issuer_signature_algorithm(&self) -> &IssuerSignatureAlgorithm
pub fn get_issuer_signature_algorithm(&self) -> &IssuerSignatureAlgorithm
Get the issuer signature algorithm.
Trait Implementations§
source§impl<'de> Deserialize<'de> for TbsCert
impl<'de> Deserialize<'de> for TbsCert
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TbsCert
Auto Trait Implementations§
impl Freeze for TbsCert
impl RefUnwindSafe for TbsCert
impl Send for TbsCert
impl Sync for TbsCert
impl Unpin for TbsCert
impl UnwindSafe for TbsCert
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)