Namespaces | |
| conf | |
| detail | |
| transform | |
| v1 | |
| v2 | |
Classes | |
| class | CertificateCache |
| Interface for the cache of validated certificates. More... | |
| class | CertificateCacheTtl |
| Cache of validated certificates with freshness-based eviction policy. More... | |
| class | CertificateContainer |
| A handler to search or enumerate certificates of a key. More... | |
| class | CFReleaser |
| Helper class to wrap CoreFoundation object pointers. More... | |
| class | CommandInterestValidator |
| a validator for stop-and-wait command Interests More... | |
| class | DummyPublicInfo |
| class | DummyTpm |
| struct | Factory |
| class | Identity |
| represents an identity More... | |
| class | IdentityContainer |
| A handler to search or enumerate identities in PIB. More... | |
| class | Key |
| represents a key More... | |
| class | KeyChain |
| The packet signing interface. More... | |
| class | KeyContainer |
| A handler to search or enumerate keys of an identity. More... | |
| class | Pib |
| represents the PIB More... | |
| class | PibImpl |
| Abstract class of PIB implementation. More... | |
| class | PibMemory |
| An in-memory implementation of Pib. More... | |
| class | PibSqlite3 |
| Pib backend implementation based on SQLite3 database. More... | |
| class | SafeBag |
| a secured container for sensitive information(certificate, private key) More... | |
| class | SecPublicInfo |
| SecPublicInfo is a base class for the storage of public information. More... | |
| class | SecPublicInfoSqlite3 |
| class | SecTpm |
| SecTpm is the base class of the TPM classes. More... | |
| class | SecTpmFile |
| class | SecTpmOsx |
| class | SecuredBag |
| class | SigningInfo |
| Signing parameters passed to KeyChain. More... | |
| class | ValidationRequest |
| ValidationRequest contains information related to further validation. More... | |
| class | Validator |
| provides the interfaces for packet validation. More... | |
| class | ValidatorConfig |
| The validator which can be set up via a configuration file. More... | |
| class | ValidatorNull |
| class | ValidatorRegex |
| class | ValidityPeriod |
| Abstraction of validity period. More... | |
Typedefs | |
| typedef Factory< KeyChain::PibCreateFunc > | PibFactory |
| typedef Factory< KeyChain::TpmCreateFunc > | TpmFactory |
| typedef function< void(const shared_ptr< const Interest > &)> | OnInterestValidated |
| Callback to report a successful Interest validation. More... | |
| typedef function< void(const shared_ptr< const Interest > &, const std::string &)> | OnInterestValidationFailed |
| Callback to report a failed Interest validation. More... | |
| typedef function< void(const shared_ptr< const Data > &)> | OnDataValidated |
| Callback to report a successful Data validation. More... | |
| typedef function< void(const shared_ptr< const Data > &, const std::string &)> | OnDataValidationFailed |
| Callback to report a failed Data validation. More... | |
Functions | |
| std::ostream & | operator<< (std::ostream &os, CommandInterestValidator::ErrorCode error) |
| static void | invokeReject (const OnInterestValidationFailed &reject, const Interest &interest, CommandInterestValidator::ErrorCode error) |
| static std::map< std::string, PibFactory > & | getPibFactories () |
| static std::map< std::string, TpmFactory > & | getTpmFactories () |
| static std::tuple< std::string, std::string > | parseUri (const std::string &uri) |
| static std::tuple< std::string, std::string > | getCanonicalPibLocator (const std::string &pibLocator) |
| static std::tuple< std::string, std::string > | getCanonicalTpmLocator (const std::string &tpmLocator) |
| static Name | getKeyName (const Name &identity, const name::Component &keyId) |
| template size_t | SafeBag::wireEncode< encoding::EncoderTag > (EncodingImpl< encoding::EncoderTag > &encoder) const |
| template size_t | SafeBag::wireEncode< encoding::EstimatorTag > (EncodingImpl< encoding::EstimatorTag > &encoder) const |
| static int | sqlite3_bind_string (sqlite3_stmt *statement, int index, const string &value, void(*destructor)(void *)) |
| A utility function to call the normal sqlite3_bind_text where the value and length are value.c_str() and value.size(). More... | |
| static string | sqlite3_column_string (sqlite3_stmt *statement, int column) |
| SigningInfo | signingByIdentity (const Name &identity) |
| SigningInfo | signingByKey (const Name &keyName) |
| SigningInfo | signingByCertificate (const Name &certName) |
| SigningInfo | signingWithSha256 () |
| std::ostream & | operator<< (std::ostream &os, const SigningInfo &si) |
| template size_t | ValidityPeriod::wireEncode< encoding::EncoderTag > (EncodingImpl< encoding::EncoderTag > &encoder) const |
| template size_t | ValidityPeriod::wireEncode< encoding::EstimatorTag > (EncodingImpl< encoding::EstimatorTag > &encoder) const |
| std::ostream & | operator<< (std::ostream &os, const ValidityPeriod &period) |
Variables | |
| static const uint8_t | DUMMY_CERT [] |
| static const uint8_t | DUMMY_SIGNATURE [] |
| DummyPublicInfo | |
| pib | dummy |
| DummyTpm | |
| const std::string | DEFAULT_PIB_SCHEME = "pib-sqlite3" |
| const std::string | DEFAULT_TPM_SCHEME = "tpm-file" |
| SecPublicInfoSqlite3 | |
| pib | sqlite3 |
| SecTpmFile | |
| tpm | file |
| static const string | INITIALIZATION |
| WireEncodable< SafeBag > | |
| WireDecodable< SafeBag > | |
| static const string | INIT_TPM_INFO_TABLE |
| static const string | INIT_ID_TABLE |
| static const string | INIT_KEY_TABLE |
| static const string | INIT_CERT_TABLE |
| static Oid | SECP256R1 ("1.2.840.10045.3.1.7") |
| static Oid | SECP384R1 ("1.3.132.0.34") |
| WireEncodable< ValidityPeriod > | |
| WireEncodableWithEncodingBuffer< ValidityPeriod > | |
| WireDecodable< ValidityPeriod > | |
| static const size_t | ISO_DATETIME_SIZE = 15 |
| static const size_t | NOT_BEFORE_OFFSET = 0 |
| static const size_t | NOT_AFTER_OFFSET = 1 |
Definition at line 84 of file key-chain.cpp.
Definition at line 85 of file key-chain.cpp.
| typedef function<void(const shared_ptr<const Interest>&)> ndn::security::OnInterestValidated |
Callback to report a successful Interest validation.
Definition at line 33 of file validation-request.hpp.
| typedef function<void(const shared_ptr<const Interest>&, const std::string&)> ndn::security::OnInterestValidationFailed |
Callback to report a failed Interest validation.
Definition at line 37 of file validation-request.hpp.
| typedef function<void(const shared_ptr<const Data>&)> ndn::security::OnDataValidated |
Callback to report a successful Data validation.
Definition at line 40 of file validation-request.hpp.
| typedef function<void(const shared_ptr<const Data>&, const std::string&)> ndn::security::OnDataValidationFailed |
Callback to report a failed Data validation.
Definition at line 44 of file validation-request.hpp.
| std::ostream & ndn::security::operator<< | ( | std::ostream & | os, |
| CommandInterestValidator::ErrorCode | error | ||
| ) |
Definition at line 30 of file command-interest-validator.cpp.
References ndn::security::CommandInterestValidator::BAD_CERT_NAME, ndn::security::CommandInterestValidator::BAD_KEY_LOCATOR_TYPE, ndn::security::CommandInterestValidator::BAD_SIG_INFO, ndn::security::CommandInterestValidator::BAD_TIMESTAMP, ndn::security::CommandInterestValidator::MISSING_KEY_LOCATOR, ndn::security::CommandInterestValidator::NAME_TOO_SHORT, ndn::security::CommandInterestValidator::NONE, ndn::security::CommandInterestValidator::TIMESTAMP_OUT_OF_GRACE, and ndn::security::CommandInterestValidator::TIMESTAMP_REORDER.
Referenced by ndn::security::ValidityPeriod::Error::Error().
|
static |
Definition at line 56 of file command-interest-validator.cpp.
Referenced by ndn::security::CommandInterestValidator::checkPolicy().
|
static |
Definition at line 88 of file key-chain.cpp.
Referenced by ndn::security::KeyChain::createPib(), getCanonicalPibLocator(), and getTpmFactories().
|
static |
Definition at line 95 of file key-chain.cpp.
References ndn::security::Factory< T >::canonicalName, and getPibFactories().
Referenced by ndn::security::KeyChain::createTpm(), and getCanonicalTpmLocator().
|
inlinestatic |
Definition at line 168 of file key-chain.cpp.
Referenced by getCanonicalPibLocator(), and getCanonicalTpmLocator().
|
inlinestatic |
Definition at line 188 of file key-chain.cpp.
References DEFAULT_PIB_SCHEME, getPibFactories(), and parseUri().
Referenced by ndn::security::KeyChain::createPib(), and ndn::security::KeyChain::createTpm().
|
inlinestatic |
Definition at line 226 of file key-chain.cpp.
References DEFAULT_TPM_SCHEME, getTpmFactories(), and parseUri().
Referenced by ndn::security::KeyChain::createTpm().
|
static |
Definition at line 207 of file pib-sqlite3.cpp.
References ndn::Name::append().
Referenced by ndn::security::PibSqlite3::addKey(), ndn::security::PibSqlite3::getCertificatesOfKey(), ndn::security::PibSqlite3::getDefaultCertificateOfKey(), ndn::security::PibSqlite3::getKeyBits(), ndn::security::PibSqlite3::hasKey(), ndn::security::PibSqlite3::removeKey(), and ndn::security::PibSqlite3::setDefaultKeyOfIdentity().
| template size_t ndn::security::SafeBag::wireEncode< encoding::EncoderTag > | ( | EncodingImpl< encoding::EncoderTag > & | encoder | ) | const |
| template size_t ndn::security::SafeBag::wireEncode< encoding::EstimatorTag > | ( | EncodingImpl< encoding::EstimatorTag > & | encoder | ) | const |
|
static |
A utility function to call the normal sqlite3_bind_text where the value and length are value.c_str() and value.size().
Definition at line 98 of file sec-public-info-sqlite3.cpp.
Referenced by ndn::security::SecPublicInfoSqlite3::addCertificate(), ndn::security::SecPublicInfoSqlite3::addIdentity(), ndn::security::SecPublicInfoSqlite3::addKey(), ndn::security::SecPublicInfoSqlite3::deleteCertificateInfo(), ndn::security::SecPublicInfoSqlite3::deleteIdentityInfo(), ndn::security::SecPublicInfoSqlite3::deletePublicKeyInfo(), ndn::security::SecPublicInfoSqlite3::doesCertificateExist(), ndn::security::SecPublicInfoSqlite3::doesIdentityExist(), ndn::security::SecPublicInfoSqlite3::doesPublicKeyExist(), ndn::security::SecPublicInfoSqlite3::getAllCertificateNamesOfKey(), ndn::security::SecPublicInfoSqlite3::getAllKeyNamesOfIdentity(), ndn::security::SecPublicInfoSqlite3::getCertificate(), ndn::security::SecPublicInfoSqlite3::getDefaultCertificateNameForKey(), ndn::security::SecPublicInfoSqlite3::getDefaultIdentity(), ndn::security::SecPublicInfoSqlite3::getDefaultKeyNameForIdentity(), ndn::security::SecPublicInfoSqlite3::getPublicKey(), ndn::security::SecPublicInfoSqlite3::getPublicKeyType(), and ndn::security::SecPublicInfoSqlite3::getTpmLocator().
|
static |
Definition at line 107 of file sec-public-info-sqlite3.cpp.
Referenced by ndn::security::SecPublicInfoSqlite3::getDefaultIdentity(), and ndn::security::SecPublicInfoSqlite3::getTpmLocator().
| SigningInfo ndn::security::signingByIdentity | ( | const Name & | identity | ) |
Definition at line 28 of file signing-helpers.cpp.
References ndn::security::SigningInfo::SIGNER_TYPE_ID.
Referenced by nfd::rib::AutoPrefixPropagator::disable(), ndn::Face::registerPrefix(), ndn::Face::setInterestFilter(), ndn::nfd::CommandOptions::setSigningInfo(), and ndn::security::KeyChain::signByIdentity().
| SigningInfo ndn::security::signingByKey | ( | const Name & | keyName | ) |
Definition at line 34 of file signing-helpers.cpp.
References ndn::security::SigningInfo::SIGNER_TYPE_KEY.
| SigningInfo ndn::security::signingByCertificate | ( | const Name & | certName | ) |
Definition at line 40 of file signing-helpers.cpp.
References ndn::security::SigningInfo::SIGNER_TYPE_CERT.
Referenced by ndn::Face::registerPrefix(), ndn::Face::setInterestFilter(), and ndn::nfd::CommandOptions::setSigningInfo().
| SigningInfo ndn::security::signingWithSha256 | ( | ) |
Definition at line 46 of file signing-helpers.cpp.
References ndn::security::SigningInfo::SIGNER_TYPE_SHA256.
Referenced by ndn::security::KeyChain::signWithSha256().
| std::ostream & ndn::security::operator<< | ( | std::ostream & | os, |
| const SigningInfo & | si | ||
| ) |
Definition at line 111 of file signing-info.cpp.
References ndn::security::KeyChain::DIGEST_SHA256_IDENTITY, ndn::security::SigningInfo::getSignerName(), ndn::security::SigningInfo::getSignerType(), ndn::security::SigningInfo::SIGNER_TYPE_CERT, ndn::security::SigningInfo::SIGNER_TYPE_ID, ndn::security::SigningInfo::SIGNER_TYPE_KEY, ndn::security::SigningInfo::SIGNER_TYPE_NULL, and ndn::security::SigningInfo::SIGNER_TYPE_SHA256.
| template size_t ndn::security::ValidityPeriod::wireEncode< encoding::EncoderTag > | ( | EncodingImpl< encoding::EncoderTag > & | encoder | ) | const |
| template size_t ndn::security::ValidityPeriod::wireEncode< encoding::EstimatorTag > | ( | EncodingImpl< encoding::EstimatorTag > & | encoder | ) | const |
| std::ostream & ndn::security::operator<< | ( | std::ostream & | os, |
| const ValidityPeriod & | period | ||
| ) |
Definition at line 164 of file validity-period.cpp.
References ndn::security::ValidityPeriod::getPeriod(), and ndn::time::toIsoString().
|
static |
Definition at line 29 of file dummy-keychain.cpp.
|
static |
Definition at line 47 of file dummy-keychain.cpp.
Definition at line 69 of file dummy-keychain.cpp.
| tpm ndn::security::dummy |
Definition at line 69 of file dummy-keychain.cpp.
Definition at line 70 of file dummy-keychain.cpp.
| const std::string ndn::security::DEFAULT_PIB_SCHEME = "pib-sqlite3" |
Definition at line 51 of file key-chain.cpp.
Referenced by getCanonicalPibLocator().
| const std::string ndn::security::DEFAULT_TPM_SCHEME = "tpm-file" |
Definition at line 56 of file key-chain.cpp.
Referenced by getCanonicalTpmLocator().
Definition at line 64 of file key-chain.cpp.
| pib ndn::security::sqlite3 |
Definition at line 64 of file key-chain.cpp.
Definition at line 70 of file key-chain.cpp.
| tpm ndn::security::file |
Definition at line 70 of file key-chain.cpp.
Referenced by nfd::getExtendedErrorMessage(), ndn::security::ValidatorConfig::load(), and ndn::security::SecTpmFile::signInTpm().
|
static |
Definition at line 38 of file pib-sqlite3.cpp.
| ndn::security::WireEncodable< SafeBag > |
Definition at line 30 of file safe-bag.cpp.
| ndn::security::WireDecodable< SafeBag > |
Definition at line 31 of file safe-bag.cpp.
|
static |
Definition at line 46 of file sec-public-info-sqlite3.cpp.
|
static |
Definition at line 53 of file sec-public-info-sqlite3.cpp.
|
static |
Definition at line 62 of file sec-public-info-sqlite3.cpp.
|
static |
Definition at line 76 of file sec-public-info-sqlite3.cpp.
|
static |
Referenced by ndn::security::Validator::verifySignature().
|
static |
Referenced by ndn::security::Validator::verifySignature().
| ndn::security::WireEncodable< ValidityPeriod > |
Definition at line 30 of file validity-period.cpp.
| ndn::security::WireEncodableWithEncodingBuffer< ValidityPeriod > |
Definition at line 31 of file validity-period.cpp.
| ndn::security::WireDecodable< ValidityPeriod > |
Definition at line 32 of file validity-period.cpp.
|
static |
Definition at line 36 of file validity-period.cpp.
Referenced by ndn::security::ValidityPeriod::wireDecode().
|
static |
Definition at line 37 of file validity-period.cpp.
Referenced by ndn::security::ValidityPeriod::wireDecode().
|
static |
Definition at line 38 of file validity-period.cpp.
Referenced by ndn::security::ValidityPeriod::wireDecode().