NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ndn::security::DummyPublicInfo Class Reference

#include <dummy-keychain.hpp>

Inheritance diagram for ndn::security::DummyPublicInfo:
Collaboration diagram for ndn::security::DummyPublicInfo:

Public Member Functions

 DummyPublicInfo (const std::string &locator)
 
virtual bool doesIdentityExist (const Name &identityName)
 
virtual void addIdentity (const Name &identityName)
 
virtual bool revokeIdentity ()
 
virtual bool doesPublicKeyExist (const Name &keyName)
 
virtual void addKey (const Name &keyName, const PublicKey &publicKey)
 
virtual shared_ptr< PublicKey > getPublicKey (const Name &keyName)
 
virtual KeyType getPublicKeyType (const Name &keyName)
 
virtual bool doesCertificateExist (const Name &certificateName)
 
virtual void addCertificate (const IdentityCertificate &certificate)
 
virtual shared_ptr
< IdentityCertificate > 
getCertificate (const Name &certificateName)
 
virtual Name getDefaultIdentity ()
 
virtual Name getDefaultKeyNameForIdentity (const Name &identityName)
 
virtual Name getDefaultCertificateNameForKey (const Name &keyName)
 
virtual void getAllIdentities (std::vector< Name > &nameList, bool isDefault)
 
virtual void getAllKeyNames (std::vector< Name > &nameList, bool isDefault)
 
virtual void getAllKeyNamesOfIdentity (const Name &identity, std::vector< Name > &nameList, bool isDefault)
 
virtual void getAllCertificateNames (std::vector< Name > &nameList, bool isDefault)
 
virtual void getAllCertificateNamesOfKey (const Name &keyName, std::vector< Name > &nameList, bool isDefault)
 
virtual void deleteCertificateInfo (const Name &certificateName)
 
virtual void deletePublicKeyInfo (const Name &keyName)
 
virtual void deleteIdentityInfo (const Name &identity)
 
virtual void setTpmLocator (const std::string &tpmLocator)
 
virtual std::string getTpmLocator ()
 

Static Public Attributes

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

Protected Member Functions

virtual void setDefaultIdentityInternal (const Name &identityName)
 
virtual void setDefaultKeyNameForIdentityInternal (const Name &keyName)
 
virtual void setDefaultCertificateNameForKeyInternal (const Name &certificateName)
 
virtual std::string getScheme ()
 

Detailed Description

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

Constructor & Destructor Documentation

ndn::security::DummyPublicInfo::DummyPublicInfo ( const std::string &  locator)

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

Member Function Documentation

void ndn::security::DummyPublicInfo::addCertificate ( const IdentityCertificate &  certificate)
virtual

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

void ndn::security::DummyPublicInfo::addIdentity ( const Name &  identityName)
virtual

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

void ndn::security::DummyPublicInfo::addKey ( const Name &  keyName,
const PublicKey &  publicKey 
)
virtual

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

void ndn::security::DummyPublicInfo::deleteCertificateInfo ( const Name &  certificateName)
virtual

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

void ndn::security::DummyPublicInfo::deleteIdentityInfo ( const Name &  identity)
virtual

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

void ndn::security::DummyPublicInfo::deletePublicKeyInfo ( const Name &  keyName)
virtual

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

bool ndn::security::DummyPublicInfo::doesCertificateExist ( const Name &  certificateName)
virtual

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

bool ndn::security::DummyPublicInfo::doesIdentityExist ( const Name &  identityName)
virtual

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

bool ndn::security::DummyPublicInfo::doesPublicKeyExist ( const Name &  keyName)
virtual

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

void ndn::security::DummyPublicInfo::getAllCertificateNames ( std::vector< Name > &  nameList,
bool  isDefault 
)
virtual

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

void ndn::security::DummyPublicInfo::getAllCertificateNamesOfKey ( const Name &  keyName,
std::vector< Name > &  nameList,
bool  isDefault 
)
virtual

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

void ndn::security::DummyPublicInfo::getAllIdentities ( std::vector< Name > &  nameList,
bool  isDefault 
)
virtual

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

void ndn::security::DummyPublicInfo::getAllKeyNames ( std::vector< Name > &  nameList,
bool  isDefault 
)
virtual

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

void ndn::security::DummyPublicInfo::getAllKeyNamesOfIdentity ( const Name &  identity,
std::vector< Name > &  nameList,
bool  isDefault 
)
virtual

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

shared_ptr< IdentityCertificate > ndn::security::DummyPublicInfo::getCertificate ( const Name &  certificateName)
virtual

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

References ndn::security::DUMMY_CERT.

Name ndn::security::DummyPublicInfo::getDefaultCertificateNameForKey ( const Name &  keyName)
virtual

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

Name ndn::security::DummyPublicInfo::getDefaultIdentity ( )
virtual

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

Name ndn::security::DummyPublicInfo::getDefaultKeyNameForIdentity ( const Name &  identityName)
virtual

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

shared_ptr< PublicKey > ndn::security::DummyPublicInfo::getPublicKey ( const Name &  keyName)
virtual

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

References ndn::security::DUMMY_CERT.

KeyType ndn::security::DummyPublicInfo::getPublicKeyType ( const Name &  keyName)
virtual

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

std::string ndn::security::DummyPublicInfo::getScheme ( )
protectedvirtual

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

References SCHEME.

std::string ndn::security::DummyPublicInfo::getTpmLocator ( )
virtual

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

bool ndn::security::DummyPublicInfo::revokeIdentity ( )
virtual

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

void ndn::security::DummyPublicInfo::setDefaultCertificateNameForKeyInternal ( const Name &  certificateName)
protectedvirtual

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

void ndn::security::DummyPublicInfo::setDefaultIdentityInternal ( const Name &  identityName)
protectedvirtual

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

void ndn::security::DummyPublicInfo::setDefaultKeyNameForIdentityInternal ( const Name &  keyName)
protectedvirtual

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

void ndn::security::DummyPublicInfo::setTpmLocator ( const std::string &  tpmLocator)
virtual

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

Member Data Documentation

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

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

Referenced by getScheme().


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