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

Helper class to decode a certificate bundle. More...

#include <certificate-bundle-decoder.hpp>

Collaboration diagram for ndn::security::detail::CertificateBundleDecoder:

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...
 

Detailed Description

Helper class to decode a certificate bundle.

Definition at line 34 of file certificate-bundle-decoder.hpp.

Member Function Documentation

◆ append()

void ndn::security::detail::CertificateBundleDecoder::append ( const Block block)

Append a bundle segment to the internal decoding buffer and trigger decoding.

Parameters
blockContent element of the segment to be appended
Exceptions
tlv::ErrorWhen the decoder encounters an unrecognized element with critical type. No longer accepts segments after throwing.
Warning
Must not be called from a handler of onCertDecoded.
Segments must be appended in order, otherwise the behavior is undefined.

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().

◆ hasError()

bool ndn::security::detail::CertificateBundleDecoder::hasError ( ) const
inlinenoexcept

Whether the decoder has encountered an unrecoverable error.

Definition at line 52 of file certificate-bundle-decoder.hpp.

Member Data Documentation

◆ onCertDecoded

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().


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