22 #ifndef NDN_SIGNATURE_HPP
23 #define NDN_SIGNATURE_HPP
180 return !(*
this == other);
190 #endif // NDN_SIGNATURE_HPP
Copyright (c) 2013-2016 Regents of the University of California.
void setInfo(const SignatureInfo &info)
Set SignatureInfo.
void setKeyLocator(const KeyLocator &keyLocator)
Set KeyLocator.
void setInfo(const Block &info)
Set SignatureInfo from a block.
bool hasKeyLocator() const
Check if SignatureInfo block has a KeyLocator.
bool operator==(const Signature &other) const
const KeyLocator & getKeyLocator() const
Get KeyLocator.
Class representing a wire element of NDN-TLV packet format.
const Block & getValue() const
Get SignatureValue in the wire format.
void unsetKeyLocator()
Unset KeyLocator.
const KeyLocator & getKeyLocator() const
Get KeyLocator.
Copyright (c) 2013-2016 Regents of the University of California.
const SignatureInfo & getSignatureInfo() const
Get SignatureInfo.
Error(const std::string &what)
uint32_t getType() const
Get signature type.
void setKeyLocator(const KeyLocator &keyLocator)
Set KeyLocator.
void setValue(const Block &value)
Get SignatureValue from a block.
bool operator!=(const Signature &other) const
void unsetKeyLocator()
Unset KeyLocator.
size_t wireEncode(EncodingImpl< TAG > &encoder) const
Encode to a wire format or estimate wire format.
const Block & getInfo() const
Get SignatureInfo in the wire format.
void encode()
Encode subblocks into wire buffer.
bool hasKeyLocator() const
Check if KeyLocator is set.
int32_t getSignatureType() const
Get SignatureType.
represents an error in TLV encoding or decoding
A Signature is storage for the signature-related information (info and value) in a Data packet...