26 BOOST_CONCEPT_ASSERT((boost::EqualityComparable<Signature>));
27 static_assert(std::is_base_of<tlv::Error, Signature::Error>::value,
28 "Signature::Error must inherit from tlv::Error");
47 BOOST_THROW_EXCEPTION(
Error(
"Signature is invalid"));
62 BOOST_THROW_EXCEPTION(
Error(
"Expecting SignatureValue, but TLV-TYPE is " +
to_string(value.
type())));
Copyright (c) 2013-2017 Regents of the University of California.
Represents a SignatureInfo TLV element.
void setInfo(const Block &info)
Decode SignatureInfo from wire format.
Represents a TLV element of NDN packet format.
const Block & getValue() const
Get SignatureValue.
const SignatureInfo & getSignatureInfo() const
Get SignatureInfo.
void setValue(const Block &value)
Set SignatureValue.
tlv::SignatureTypeValue getType() const
Get SignatureType.
uint32_t type() const
Get TLV-TYPE.
bool operator==(const Data &lhs, const Data &rhs)
std::string to_string(const V &v)
int32_t getSignatureType() const
Get SignatureType.
Holds SignatureInfo and SignatureValue in a Data packet.