ndn::security::v2::AdditionalDescription Class Reference

Abstraction of AdditionalDescription. More...

#include <ndn-cxx/security/v2/additional-description.hpp>

Classes

class  Error
 

Public Types

typedef std::map< std::string, std::string >::const_iterator const_iterator
 
typedef std::map< std::string, std::string >::iterator iterator
 

Public Member Functions

 AdditionalDescription ()=default
 Create an empty AdditionalDescription. More...
 
 AdditionalDescription (const Block &block)
 Create AdditionalDescription from block. More...
 
iterator begin ()
 
const_iterator begin () const
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
const std::string & get (const std::string &key) const
 
bool has (const std::string &key) const
 
bool operator!= (const AdditionalDescription &other) const
 
bool operator== (const AdditionalDescription &other) const
 
void set (const std::string &key, const std::string &value)
 
size_t size () const
 
void wireDecode (const Block &wire)
 Decode ValidityPeriod from TLV block. More...
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 Fast encoding or block size estimation. More...
 
const BlockwireEncode () const
 Encode ValidityPeriod into TLV block. More...
 

Detailed Description

Abstraction of AdditionalDescription.

See also
docs/specs/certificate-format.rst

Definition at line 39 of file additional-description.hpp.

Member Typedef Documentation

typedef std::map<std::string, std::string>::const_iterator ndn::security::v2::AdditionalDescription::const_iterator

Definition at line 49 of file additional-description.hpp.

typedef std::map<std::string, std::string>::iterator ndn::security::v2::AdditionalDescription::iterator

Definition at line 48 of file additional-description.hpp.

Constructor & Destructor Documentation

ndn::security::v2::AdditionalDescription::AdditionalDescription ( )
default

Create an empty AdditionalDescription.

ndn::security::v2::AdditionalDescription::AdditionalDescription ( const Block block)
explicit

Create AdditionalDescription from block.

Definition at line 40 of file additional-description.cpp.

Member Function Documentation

AdditionalDescription::iterator ndn::security::v2::AdditionalDescription::begin ( )

Definition at line 68 of file additional-description.cpp.

AdditionalDescription::const_iterator ndn::security::v2::AdditionalDescription::begin ( ) const

Definition at line 80 of file additional-description.cpp.

bool ndn::security::v2::AdditionalDescription::empty ( ) const
inline

Definition at line 79 of file additional-description.hpp.

AdditionalDescription::iterator ndn::security::v2::AdditionalDescription::end ( )

Definition at line 74 of file additional-description.cpp.

AdditionalDescription::const_iterator ndn::security::v2::AdditionalDescription::end ( ) const

Definition at line 86 of file additional-description.cpp.

const std::string & ndn::security::v2::AdditionalDescription::get ( const std::string &  key) const

Definition at line 46 of file additional-description.cpp.

bool ndn::security::v2::AdditionalDescription::has ( const std::string &  key) const

Definition at line 62 of file additional-description.cpp.

bool ndn::security::v2::AdditionalDescription::operator!= ( const AdditionalDescription other) const

Definition at line 172 of file additional-description.cpp.

bool ndn::security::v2::AdditionalDescription::operator== ( const AdditionalDescription other) const

Definition at line 166 of file additional-description.cpp.

void ndn::security::v2::AdditionalDescription::set ( const std::string &  key,
const std::string &  value 
)

Definition at line 56 of file additional-description.cpp.

size_t ndn::security::v2::AdditionalDescription::size ( ) const
inline

Definition at line 73 of file additional-description.hpp.

void ndn::security::v2::AdditionalDescription::wireDecode ( const Block wire)

Decode ValidityPeriod from TLV block.

Exceptions
Errorwhen an invalid TLV block supplied

Definition at line 133 of file additional-description.cpp.

template<encoding::Tag TAG>
size_t ndn::security::v2::AdditionalDescription::wireEncode ( EncodingImpl< TAG > &  encoder) const

Fast encoding or block size estimation.

Definition at line 93 of file additional-description.cpp.

const Block & ndn::security::v2::AdditionalDescription::wireEncode ( ) const

Encode ValidityPeriod into TLV block.

Definition at line 115 of file additional-description.cpp.