PcapPlusPlus  Next
pcpp::X509Name Class Reference

#include <X509Decoder.h>

Classes

struct  RDN
 

Public Member Functions

std::string toString (const std::string &delimiter=", ") const
 
const std::vector< RDN > & getRDNs () const
 

Detailed Description

Represents a name in an X.509 certificate

Member Function Documentation

◆ getRDNs()

const std::vector<RDN>& pcpp::X509Name::getRDNs ( ) const
inline

Gets the list of Relative Distinguished Names (RDNs)

Returns
A vector of RDN objects

◆ toString()

std::string pcpp::X509Name::toString ( const std::string &  delimiter = ", ") const

Converts the X509Name to a string representation, e.g C=US, ST=California, CN=example.com

Parameters
[in]delimiterThe delimiter to use between RDNs (default: ", ")
Returns
A string representation of the X509Name