22 #ifndef NDN_KEY_LOCATOR_LITE_HPP
23 #define NDN_KEY_LOCATOR_LITE_HPP
25 #include "name-lite.hpp"
26 #include "../c/key-types.h"
49 getType()
const {
return type; }
76 setType(ndn_KeyLocatorType
type) { this->type =
type; }
Copyright (C) 2013-2015 Regents of the University of California.
Definition: common.hpp:35
struct ndn_Blob keyData
A Blob whose value is a pointer to a pre-allocated buffer for the key data as follows: If type is ndn...
Definition: key-types.h:53
static KeyLocatorLite & upCast(ndn_KeyLocator &keyLocator)
Upcast the reference to the ndn_KeyLocator struct to a KeyLocatorLite.
Definition: key-locator-lite.hpp:106
A NameLite holds an array of NameLite::Component.
Definition: name-lite.hpp:34
KeyLocatorLite(ndn_NameComponent *keyNameComponents, size_t maxKeyNameComponents)
Create a KeyLocatorLite with the pre-allocated nameComponents, and defaults for all the values...
Definition: key-locator-lite.cpp:28
ndn_Error set(const KeyLocatorLite &other)
Set this key locator to have the values from the other key locator.
Definition: key-locator-lite.cpp:34
ndn_KeyLocatorType type
-1 for none
Definition: key-types.h:52
static BlobLite & upCast(ndn_Blob &blob)
Upcast the reference to the ndn_Blob struct to a BlobLite.
Definition: blob-lite.hpp:69
A KeyLocatorLite holds a type and other info to represent the key which signs a Data packet...
Definition: key-locator-lite.hpp:34
ndn_KeyNameType keyNameType
The type of data for keyName, -1 for none.
Definition: key-types.h:64
ndn_Error set(const NameLite &other)
Set this name to have the values from the other name.
Definition: name-lite.cpp:181
An ndn_KeyLocator holds the type of key locator and related data.
Definition: key-types.h:51
Copyright (C) 2015 Regents of the University of California.
Definition: name-types.h:33
void setKeyData(const BlobLite &keyData)
Set the key data.
Definition: key-locator-lite.hpp:83
ndn_Error setKeyName(const NameLite &keyName)
Set this object's key name to have the values from the given keyName.
Definition: key-locator-lite.hpp:70
A BlobLite holds a pointer to an immutable pre-allocated buffer and its length This is like a JavaScr...
Definition: blob-lite.hpp:37
struct ndn_Name keyName
The key name (only used if type is ndn_KeyLocatorType_KEYNAME.)
Definition: key-types.h:62
static NameLite & upCast(ndn_Name &name)
Upcast the reference to the ndn_Name struct to a NameLite.
Definition: name-lite.hpp:377