ndn::security::detail::CertificateBundleDecoder Class Reference

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

#include <ndn-cxx/security/detail/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, CertificateonCertDecoded
 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.

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