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 decode (CryptoPP::BufferedTransformation &in)
 
void encode (CryptoPP::BufferedTransformation &out) const
 
bool getIsCritical () const
 
const OidgetOid () const
 
const BuffergetValue () const
 

Protected Attributes

Oid m_extensionId
 
Buffer m_extensionValue
 
bool m_isCritical
 

Detailed Description

A CertificateExtension represents the Extension entry in a certificate.

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

Constructor & Destructor Documentation

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

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

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.

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.

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

The virtual destructor.

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

Member Function Documentation

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

Definition at line 52 of file certificate-extension.cpp.

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

Definition at line 33 of file certificate-extension.cpp.

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

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

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

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

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

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

Member Data Documentation

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

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

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

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

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

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