NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::DummyPib Class Reference

#include <dummy-keychain.hpp>

Inheritance diagram for ndn::security::DummyPib:
Collaboration diagram for ndn::security::DummyPib:

Classes

class  Error
 

Public Member Functions

 DummyPib (const std::string &locator)
 
void setTpmLocator (const std::string &tpmLocator) override
 
std::string getTpmLocator () const override
 
bool hasIdentity (const Name &identityName) const override
 
void addIdentity (const Name &identityName) override
 
void removeIdentity (const Name &identity) override
 
void clearIdentities () override
 
std::set< NamegetIdentities () const override
 
void setDefaultIdentity (const Name &identityName) override
 
Name getDefaultIdentity () const override
 
bool hasKey (const Name &keyName) const override
 
void addKey (const Name &identity, const Name &keyName, const uint8_t *key, size_t keyLen) override
 
void removeKey (const Name &keyName) override
 
Buffer getKeyBits (const Name &keyName) const override
 
std::set< NamegetKeysOfIdentity (const Name &identity) const override
 
void setDefaultKeyOfIdentity (const Name &identity, const Name &keyName) override
 
Name getDefaultKeyOfIdentity (const Name &identity) const override
 
bool hasCertificate (const Name &certName) const override
 
void addCertificate (const v2::Certificate &certificate) override
 
void removeCertificate (const Name &certName) override
 
v2::Certificate getCertificate (const Name &certificateName) const override
 
std::set< NamegetCertificatesOfKey (const Name &keyName) const override
 
void setDefaultCertificateOfKey (const Name &keyName, const Name &certName) override
 
v2::Certificate getDefaultCertificateOfKey (const Name &keyName) const override
 

Static Public Member Functions

static std::string getScheme ()
 

Static Public Attributes

static const std::string SCHEME = "pib-dummy"
 

Detailed Description

Definition at line 36 of file dummy-keychain.hpp.

Constructor & Destructor Documentation

ndn::security::DummyPib::DummyPib ( const std::string &  locator)
explicit

Definition at line 72 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

Member Function Documentation

void ndn::security::DummyPib::setTpmLocator ( const std::string &  tpmLocator)
override

Definition at line 77 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

std::string ndn::security::DummyPib::getTpmLocator ( ) const
override

Definition at line 83 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

bool ndn::security::DummyPib::hasIdentity ( const Name identityName) const
override

Definition at line 89 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

void ndn::security::DummyPib::addIdentity ( const Name identityName)
override

Definition at line 95 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

void ndn::security::DummyPib::removeIdentity ( const Name identity)
override

Definition at line 100 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

void ndn::security::DummyPib::clearIdentities ( )
override

Definition at line 105 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

std::set< Name > ndn::security::DummyPib::getIdentities ( ) const
override

Definition at line 110 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

void ndn::security::DummyPib::setDefaultIdentity ( const Name identityName)
override

Definition at line 118 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

Name ndn::security::DummyPib::getDefaultIdentity ( ) const
override

Definition at line 123 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

bool ndn::security::DummyPib::hasKey ( const Name keyName) const
override

Definition at line 129 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

void ndn::security::DummyPib::addKey ( const Name identity,
const Name keyName,
const uint8_t *  key,
size_t  keyLen 
)
override

Definition at line 135 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

void ndn::security::DummyPib::removeKey ( const Name keyName)
override

Definition at line 141 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

Buffer ndn::security::DummyPib::getKeyBits ( const Name keyName) const
override

Definition at line 146 of file dummy-keychain.cpp.

References ndn::io::BASE64.

Referenced by ndn::security::DummyPib::Error::Error().

std::set< Name > ndn::security::DummyPib::getKeysOfIdentity ( const Name identity) const
override

Definition at line 156 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

void ndn::security::DummyPib::setDefaultKeyOfIdentity ( const Name identity,
const Name keyName 
)
override

Definition at line 164 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

Name ndn::security::DummyPib::getDefaultKeyOfIdentity ( const Name identity) const
override

Definition at line 169 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

bool ndn::security::DummyPib::hasCertificate ( const Name certName) const
override

Definition at line 175 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

void ndn::security::DummyPib::addCertificate ( const v2::Certificate certificate)
override

Definition at line 181 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

void ndn::security::DummyPib::removeCertificate ( const Name certName)
override

Definition at line 186 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

v2::Certificate ndn::security::DummyPib::getCertificate ( const Name certificateName) const
override

Definition at line 191 of file dummy-keychain.cpp.

References ndn::io::BASE64.

Referenced by ndn::security::DummyPib::Error::Error().

std::set< Name > ndn::security::DummyPib::getCertificatesOfKey ( const Name keyName) const
override

Definition at line 205 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

void ndn::security::DummyPib::setDefaultCertificateOfKey ( const Name keyName,
const Name certName 
)
override

Definition at line 213 of file dummy-keychain.cpp.

Referenced by ndn::security::DummyPib::Error::Error().

v2::Certificate ndn::security::DummyPib::getDefaultCertificateOfKey ( const Name keyName) const
override

Definition at line 218 of file dummy-keychain.cpp.

References ndn::io::BASE64.

Referenced by ndn::security::DummyPib::Error::Error().

std::string ndn::security::DummyPib::getScheme ( )
static

Member Data Documentation

const std::string ndn::security::DummyPib::SCHEME = "pib-dummy"
static

Definition at line 129 of file dummy-keychain.hpp.

Referenced by getScheme().


The documentation for this class was generated from the following files: