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

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

#include <certificate-extension.hpp>

Collaboration diagram for ndn::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 42 of file certificate-extension.hpp.

Constructor & Destructor Documentation

◆ CertificateExtension() [1/3]

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

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

References decode().

◆ CertificateExtension() [2/3]

ndn::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 67 of file certificate-extension.hpp.

◆ CertificateExtension() [3/3]

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

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

◆ ~CertificateExtension()

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

The virtual destructor.

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

Member Function Documentation

◆ encode()

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

◆ decode()

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

◆ getOid()

const OID& ndn::CertificateExtension::getOid ( ) const
inline

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

References m_extensionId.

◆ getIsCritical()

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

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

References m_isCritical.

◆ getValue()

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

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

References m_extensionValue.

Member Data Documentation

◆ m_extensionId

OID ndn::CertificateExtension::m_extensionId
protected

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

Referenced by decode(), encode(), and getOid().

◆ m_isCritical

bool ndn::CertificateExtension::m_isCritical
protected

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

Referenced by decode(), encode(), and getIsCritical().

◆ m_extensionValue

Buffer ndn::CertificateExtension::m_extensionValue
protected

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

Referenced by decode(), encode(), and getValue().


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