NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::v1::CertificateExtension Class Reference

A CertificateExtension represents the Extension entry in a certificate. More...

#include <certificate-extension.hpp>

Collaboration diagram for ndn::security::v1::CertificateExtension:

Classes

class  Error
 

Public Member Functions

 CertificateExtension (CryptoPP::BufferedTransformation &in)
 
 CertificateExtension (const Oid &oid, const bool isCritical, const Buffer &value)
 Create a new CertificateExtension. More...
 
 CertificateExtension (const Oid &oid, const bool isCritical, const uint8_t *value, size_t valueSize)
 
virtual ~CertificateExtension ()
 The virtual destructor. More...
 
void encode (CryptoPP::BufferedTransformation &out) const
 
void decode (CryptoPP::BufferedTransformation &in)
 
const OidgetOid () const
 
bool getIsCritical () const
 
const BuffergetValue () const
 

Protected Attributes

Oid m_extensionId
 
bool m_isCritical
 
Buffer m_extensionValue
 

Detailed Description

A CertificateExtension represents the Extension entry in a certificate.

Definition at line 44 of file certificate-extension.hpp.

Constructor & Destructor Documentation

◆ CertificateExtension() [1/3]

ndn::security::v1::CertificateExtension::CertificateExtension ( CryptoPP::BufferedTransformation &  in)
inlineexplicit

Definition at line 58 of file certificate-extension.hpp.

◆ CertificateExtension() [2/3]

ndn::security::v1::CertificateExtension::CertificateExtension ( const Oid oid,
const bool  isCritical,
const Buffer value 
)
inline

Create a new CertificateExtension.

Parameters
oidThe oid of subject description entry.
isCriticalIf true, the extension must be handled.
valueThe extension value.

Definition at line 69 of file certificate-extension.hpp.

◆ CertificateExtension() [3/3]

ndn::security::v1::CertificateExtension::CertificateExtension ( const Oid oid,
const bool  isCritical,
const uint8_t *  value,
size_t  valueSize 
)
inline

Definition at line 74 of file certificate-extension.hpp.

◆ ~CertificateExtension()

virtual ndn::security::v1::CertificateExtension::~CertificateExtension ( )
inlinevirtual

The virtual destructor.

Definition at line 84 of file certificate-extension.hpp.

Member Function Documentation

◆ encode()

void ndn::security::v1::CertificateExtension::encode ( CryptoPP::BufferedTransformation &  out) const

◆ decode()

void ndn::security::v1::CertificateExtension::decode ( CryptoPP::BufferedTransformation &  in)

◆ getOid()

const Oid& ndn::security::v1::CertificateExtension::getOid ( ) const
inline

Definition at line 95 of file certificate-extension.hpp.

◆ getIsCritical()

bool ndn::security::v1::CertificateExtension::getIsCritical ( ) const
inline

Definition at line 101 of file certificate-extension.hpp.

◆ getValue()

const Buffer& ndn::security::v1::CertificateExtension::getValue ( ) const
inline

Definition at line 107 of file certificate-extension.hpp.

Member Data Documentation

◆ m_extensionId

Oid ndn::security::v1::CertificateExtension::m_extensionId
protected

Definition at line 113 of file certificate-extension.hpp.

Referenced by decode(), and encode().

◆ m_isCritical

bool ndn::security::v1::CertificateExtension::m_isCritical
protected

Definition at line 114 of file certificate-extension.hpp.

Referenced by decode(), and encode().

◆ m_extensionValue

Buffer ndn::security::v1::CertificateExtension::m_extensionValue
protected

Definition at line 115 of file certificate-extension.hpp.

Referenced by decode(), and encode().


The documentation for this class was generated from the following files: