PcapPlusPlus  Next
pcpp::X509Internal::X509TBSCertificate Class Reference

#include <X509Decoder.h>

Inheritance diagram for pcpp::X509Internal::X509TBSCertificate:
pcpp::X509Internal::X509Base< Asn1SequenceRecord >

Public Member Functions

X509Version getVersion () const
 
X509SerialNumber getSerialNumber () const
 
X509AlgorithmIdentifier getSignature () const
 
X509Name getIssuer () const
 
X509Validity getValidity () const
 
X509Name getSubject () const
 
X509SubjectPublicKeyInfo getSubjectPublicKeyInfo () const
 
std::unique_ptr< X509ExtensionsgetExtensions () const
 

Detailed Description

Internal class for handling the To-Be-Signed (TBS) portion of an X.509 certificate

Member Function Documentation

◆ getExtensions()

std::unique_ptr<X509Extensions> pcpp::X509Internal::X509TBSCertificate::getExtensions ( ) const

Gets the extensions from the TBS certificate

Returns
A unique_ptr to X509Extensions, or nullptr if no extensions are present

◆ getIssuer()

X509Name pcpp::X509Internal::X509TBSCertificate::getIssuer ( ) const

Gets the issuer name from the TBS certificate

Returns
The X509Name of the issuer

◆ getSerialNumber()

X509SerialNumber pcpp::X509Internal::X509TBSCertificate::getSerialNumber ( ) const

Gets the serial number of the TBS certificate

Returns
The X509SerialNumber of the certificate

◆ getSignature()

X509AlgorithmIdentifier pcpp::X509Internal::X509TBSCertificate::getSignature ( ) const

Gets the signature algorithm of the TBS certificate

Returns
The X509AlgorithmIdentifier for the signature

◆ getSubject()

X509Name pcpp::X509Internal::X509TBSCertificate::getSubject ( ) const

Gets the subject name from the TBS certificate

Returns
The X509Name of the subject

◆ getSubjectPublicKeyInfo()

X509SubjectPublicKeyInfo pcpp::X509Internal::X509TBSCertificate::getSubjectPublicKeyInfo ( ) const

Gets the subject's public key information

Returns
The X509SubjectPublicKeyInfo containing the public key

◆ getValidity()

X509Validity pcpp::X509Internal::X509TBSCertificate::getValidity ( ) const

Gets the validity period of the TBS certificate

Returns
The X509Validity object containing notBefore and notAfter timestamps

◆ getVersion()

X509Version pcpp::X509Internal::X509TBSCertificate::getVersion ( ) const

Gets the version of the TBS certificate

Returns
The X509Version of the certificate