PcapPlusPlus  Next
pcpp::SubjectPublicKeyInfo Class Reference

Represents a Subject Public Key Info (SPKI) structure This class provides methods to decode and access the components of a public key stored in the SubjectPublicKeyInfo format (RFC 5280). More...

#include <CryptoKeyDecoder.h>

Inheritance diagram for pcpp::SubjectPublicKeyInfo:
pcpp::internal::CryptographicKey< SubjectPublicKeyInfo > pcpp::internal::CryptoDataReader< SubjectPublicKeyInfo >

Public Member Functions

CryptographicKeyAlgorithm getAlgorithm () const
 
std::string getSubjectPublicKey () const
 
- Public Member Functions inherited from pcpp::internal::CryptographicKey< SubjectPublicKeyInfo >
std::vector< uint8_t > toDER () const
 
std::string toPEM () const
 

Additional Inherited Members

- Static Public Member Functions inherited from pcpp::internal::CryptoDataReader< SubjectPublicKeyInfo >
static std::unique_ptr< SubjectPublicKeyInfofromDER (uint8_t *derData, size_t derDataLen, bool ownDerData=false)
 
static std::unique_ptr< SubjectPublicKeyInfofromDER (const std::string &derData)
 
static std::unique_ptr< SubjectPublicKeyInfofromDERFile (const std::string &derFileName)
 
static std::unique_ptr< SubjectPublicKeyInfofromPEM (const std::string &pemData)
 
static std::unique_ptr< SubjectPublicKeyInfofromPEMFile (const std::string &pemFileName)
 

Detailed Description

Represents a Subject Public Key Info (SPKI) structure This class provides methods to decode and access the components of a public key stored in the SubjectPublicKeyInfo format (RFC 5280).

Member Function Documentation

◆ getAlgorithm()

CryptographicKeyAlgorithm pcpp::SubjectPublicKeyInfo::getAlgorithm ( ) const
Returns
The CryptographicKeyAlgorithm for the public key

◆ getSubjectPublicKey()

std::string pcpp::SubjectPublicKeyInfo::getSubjectPublicKey ( ) const
Returns
The public key itself