Helper class to decode a certificate bundle. More...
#include <certificate-bundle-decoder.hpp>
Public Member Functions | |
void | append (const Block &block) |
Append a bundle segment to the internal decoding buffer and trigger decoding. More... | |
bool | hasError () const noexcept |
Whether the decoder has encountered an unrecoverable error. More... | |
Public Attributes | |
util::Signal< CertificateBundleDecoder, Certificate > | onCertDecoded |
Emitted every time a certificate is successfully decoded. More... | |
Helper class to decode a certificate bundle.
Definition at line 34 of file certificate-bundle-decoder.hpp.
void ndn::security::detail::CertificateBundleDecoder::append | ( | const Block & | block | ) |
Append a bundle segment to the internal decoding buffer and trigger decoding.
block | Content element of the segment to be appended |
tlv::Error | When the decoder encounters an unrecognized element with critical type. No longer accepts segments after throwing. |
Definition at line 30 of file certificate-bundle-decoder.cpp.
References ndn::tlv::Data, ndn::Block::fromBuffer(), ndn::tlv::isCriticalType(), nonstd::scope::make_scope_fail(), NDN_THROW, onCertDecoded, ndn::Block::size(), ndn::to_string(), ndn::Block::type(), ndn::Block::value_begin(), and ndn::Block::value_end().
|
inlinenoexcept |
Whether the decoder has encountered an unrecoverable error.
Definition at line 52 of file certificate-bundle-decoder.hpp.
util::Signal<CertificateBundleDecoder, Certificate> ndn::security::detail::CertificateBundleDecoder::onCertDecoded |
Emitted every time a certificate is successfully decoded.
Definition at line 61 of file certificate-bundle-decoder.hpp.
Referenced by append().