22 #ifndef NDN_SIGNATURE_INFO_HPP 23 #define NDN_SIGNATURE_INFO_HPP 68 template<encoding::Tag TAG>
103 return m_hasKeyLocator;
152 bool m_hasKeyLocator;
154 std::list<Block> m_otherTlvs;
156 mutable Block m_wire;
173 return !(lhs == rhs);
181 #endif // NDN_SIGNATURE_INFO_HPP friend std::ostream & operator<<(std::ostream &os, const SignatureInfo &info)
Copyright (c) 2013-2017 Regents of the University of California.
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.
Error(const std::string &what)
security::ValidityPeriod getValidityPeriod() const
Get ValidityPeriod.
void unsetKeyLocator()
Unset KeyLocator.
void setValidityPeriod(const security::ValidityPeriod &validityPeriod)
Set ValidityPeriod.
void wireDecode(const Block &wire)
Decode from wire format.
bool hasKeyLocator() const
Check if KeyLocator exists.
int32_t getSignatureType() const
Get SignatureType.
represents an error in TLV encoding or decoding