A KeyLocatorLite holds a type and other info to represent the key which signs a Data packet.
More...
#include <key-locator-lite.hpp>
A KeyLocatorLite holds a type and other info to represent the key which signs a Data packet.
ndn::KeyLocatorLite::KeyLocatorLite |
( |
ndn_NameComponent * |
keyNameComponents, |
|
|
size_t |
maxKeyNameComponents |
|
) |
| |
Create a KeyLocatorLite with the pre-allocated nameComponents, and defaults for all the values.
- Parameters
-
keyNameComponents | The pre-allocated array of ndn_NameComponent. Instead of an array of NameLite::Component, this is an array of the underlying ndn_NameComponent struct so that it doesn't run the default constructor unnecessarily. |
maxKeyNameComponents | The number of elements in the allocated keyNameComponents array. |
Set this key locator to have the values from the other key locator.
- Parameters
-
- Returns
- 0 for success, or an error code if there is not enough room in this object's keyName components array.
void ndn::KeyLocatorLite::setKeyData |
( |
const BlobLite & |
keyData | ) |
|
|
inline |
Set the key data.
- Parameters
-
keyData | The key data. This does not copy the bytes of the blob. |
ndn_Error ndn::KeyLocatorLite::setKeyName |
( |
const NameLite & |
keyName | ) |
|
|
inline |
Set this object's key name to have the values from the given keyName.
- Parameters
-
keyName | The key name to get values from. |
- Returns
- 0 for success, or an error code if there is not enough room in this object's keyName components array.
The documentation for this class was generated from the following files: