|
void | clear () |
| Clear the keyData and set the type to none.
|
|
void | get (KeyLocatorLite &keyLocatorLite) const |
| Set keyLocatorLite to point to the values in this key locator, without copying any memory. More...
|
|
void | set (const KeyLocatorLite &keyLocatorLite) |
| Clear this key locator, and set the values by copying from keyLocatorLite. More...
|
|
ndn_KeyLocatorType | getType () const |
|
const Blob & | getKeyData () const |
|
const Name & | getKeyName () const |
|
Name & | getKeyName () |
|
void | setType (ndn_KeyLocatorType type) |
|
void | setKeyData (const Blob &keyData) |
|
void | setKeyName (const Name &keyName) |
|
uint64_t | getChangeCount () const |
| Get the change count, which is incremented each time this object (or a child object) is changed. More...
|
|
bool ndn::KeyLocator::canGetFromSignature |
( |
const Signature * |
signature | ) |
|
|
static |
If the signature is a type that has a KeyLocator (so that getFromSignature will succeed), return true.
Note: This is a static method of KeyLocator instead of a method of Signature so that the Signature base class does not need to be overloaded with all the different kinds of information that various signature algorithms may use.
- Parameters
-
signature | An object of a subclass of Signature. |
- Returns
- True if the signature is a type that has a KeyLocator, otherwise false.
Set keyLocatorLite to point to the values in this key locator, without copying any memory.
WARNING: The resulting pointers in keyLocatorLite are invalid after a further use of this object which could reallocate memory.
- Parameters
-
keyLocatorLite | A KeyLocatorLite where the name components array is already allocated. |
uint64_t ndn::KeyLocator::getChangeCount |
( |
| ) |
const |
|
inline |
Get the change count, which is incremented each time this object (or a child object) is changed.
- Returns
- The change count.
If the signature is a type that has a KeyLocator, then return it.
Otherwise throw an error.
- Parameters
-
signature | An object of a subclass of Signature. |
- Returns
- The signature's KeyLocator. It is an error if signature doesn't have a KeyLocator.
Clear this key locator, and set the values by copying from keyLocatorLite.
- Parameters
-
The documentation for this class was generated from the following files: