22 #ifndef NDN_SIGNATURE_HPP 23 #define NDN_SIGNATURE_HPP 39 #ifndef DOXYGEN // Older versions of doxygen can't parse deprecated decorators on classes 40 [[deprecated(
"use Data::get/setSignatureInfo and Data::get/setSignatureValue directly")]]
64 return m_info.getSignatureType() != -1;
80 return m_info.wireEncode();
87 setInfo(
const Block& info);
109 setValue(
const Block& value);
123 return m_info.hasKeyLocator();
132 return m_info.getKeyLocator();
140 m_info.setKeyLocator(keyLocator);
151 m_info.setKeyLocator(nullopt);
161 #endif // NDN_SIGNATURE_HPP
Represents a SignatureInfo or InterestSignatureInfo TLV element.
void setInfo(const SignatureInfo &info)
Set SignatureInfo.
void setKeyLocator(const KeyLocator &keyLocator)
Set KeyLocator.
Represents a TLV element of the NDN packet format.
bool hasKeyLocator() const
Check if KeyLocator exists in SignatureInfo.
void unsetKeyLocator()
Unset KeyLocator.
const Block & getInfo() const
Get SignatureInfo as wire format.
const Block & getValue() const
Get SignatureValue.
SignatureTypeValue
SignatureType values.
const KeyLocator & getKeyLocator() const
Get KeyLocator.
const SignatureInfo & getSignatureInfo() const
Get SignatureInfo.
Error(const char *expectedType, uint32_t actualType)
represents an error in TLV encoding or decoding
Holds SignatureInfo and SignatureValue in a Data packet.