22 #ifndef NDN_SIGNATURE_INFO_HPP 23 #define NDN_SIGNATURE_INFO_HPP 65 template<encoding::Tag TAG>
100 return m_hasKeyLocator;
149 bool m_hasKeyLocator;
151 std::list<Block> m_otherTlvs;
153 mutable Block m_wire;
170 return !(lhs == rhs);
178 #endif // NDN_SIGNATURE_INFO_HPP friend std::ostream & operator<<(std::ostream &os, const SignatureInfo &info)
void setSignatureType(tlv::SignatureTypeValue type)
Set SignatureType.
const Block & wireEncode() const
Encode to wire format.
Represents a SignatureInfo TLV element.
const Block & getTypeSpecificTlv(uint32_t type) const
Get SignatureType-specific sub-element.
Represents a TLV element of NDN packet format.
void appendTypeSpecificTlv(const Block &element)
Append SignatureType-specific sub-element.
bool operator!=(const Data &lhs, const Data &rhs)
const KeyLocator & getKeyLocator() const
Get KeyLocator.
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
void unsetValidityPeriod()
Unset ValidityPeriod.
void setKeyLocator(const KeyLocator &keyLocator)
Set KeyLocator.
SignatureInfo()
Create an invalid SignatureInfo.
friend bool operator==(const SignatureInfo &lhs, const SignatureInfo &rhs)
Abstraction of validity period.
security::ValidityPeriod getValidityPeriod() const
Get ValidityPeriod.
void unsetKeyLocator()
Unset KeyLocator.
void setValidityPeriod(const security::ValidityPeriod &validityPeriod)
Set ValidityPeriod.
SignatureTypeValue
SignatureType values.
void wireDecode(const Block &wire)
Decode from wire format.
bool hasKeyLocator() const
Check if KeyLocator exists.
int32_t getSignatureType() const
Get SignatureType.
Error(const char *expectedType, uint32_t actualType)
represents an error in TLV encoding or decoding