A CertificateExtension represents the Extension entry in a certificate. More...
#include <certificate-extension.hpp>
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 Oid & | getOid () const |
bool | getIsCritical () const |
const Buffer & | getValue () const |
Protected Attributes | |
Oid | m_extensionId |
bool | m_isCritical |
Buffer | m_extensionValue |
A CertificateExtension represents the Extension entry in a certificate.
Definition at line 44 of file certificate-extension.hpp.
|
inlineexplicit |
Definition at line 58 of file certificate-extension.hpp.
|
inline |
Create a new CertificateExtension.
oid | The oid of subject description entry. |
isCritical | If true, the extension must be handled. |
value | The extension value. |
Definition at line 69 of file certificate-extension.hpp.
|
inline |
Definition at line 74 of file certificate-extension.hpp.
|
inlinevirtual |
The virtual destructor.
Definition at line 84 of file certificate-extension.hpp.
void ndn::security::v1::CertificateExtension::encode | ( | CryptoPP::BufferedTransformation & | out | ) | const |
Definition at line 33 of file certificate-extension.cpp.
References ndn::Buffer::buf(), ndn::Oid::encode(), m_extensionId, m_extensionValue, and m_isCritical.
void ndn::security::v1::CertificateExtension::decode | ( | CryptoPP::BufferedTransformation & | in | ) |
Definition at line 52 of file certificate-extension.cpp.
References ndn::Oid::decode(), m_extensionId, m_extensionValue, and m_isCritical.
|
inline |
Definition at line 95 of file certificate-extension.hpp.
|
inline |
Definition at line 101 of file certificate-extension.hpp.
|
inline |
Definition at line 107 of file certificate-extension.hpp.
|
protected |
Definition at line 113 of file certificate-extension.hpp.
|
protected |
Definition at line 114 of file certificate-extension.hpp.
|
protected |
Definition at line 115 of file certificate-extension.hpp.