Copyright (C) 2017-2018 Regents of the University of California. More...
#include <validator-fixture.hpp>
Classes | |
| class | TestFace |
| TestFace extends Face to instantly simulate a call to expressInterest. More... | |
Public Member Functions | |
| ValidatorFixture (const ndn::ptr_lib::shared_ptr< ndn::ValidationPolicy > &policy) | |
| Create a ValidatorFixture to use the given policy. More... | |
| void | processInterestFromCache (const ndn::Interest &interest, const ndn::OnData &onData, const ndn::OnTimeout &onTimeout, const ndn::OnNetworkNack &onNetworkNack) |
Public Member Functions inherited from IdentityManagementFixture | |
| bool | saveCertificateToFile (const ndn::Data &data, const std::string &filePath) |
| ndn::ptr_lib::shared_ptr < ndn::PibIdentity > | addIdentity (const ndn::Name &identityName, const ndn::KeyParams ¶ms=ndn::KeyChain::getDefaultKeyParams()) |
| Add an identity for the identityName. More... | |
| bool | saveCertificate (ndn::PibIdentity identity, const std::string &filePath) |
| Save the identity's certificate to a file. More... | |
| ndn::ptr_lib::shared_ptr < ndn::PibIdentity > | addSubCertificate (const ndn::Name &subIdentityName, const ndn::ptr_lib::shared_ptr< ndn::PibIdentity > &issuer, const ndn::KeyParams ¶ms=ndn::KeyChain::getDefaultKeyParams()) |
| Issue a certificate for subIdentityName signed by issuer. More... | |
| ndn::ptr_lib::shared_ptr < ndn::CertificateV2 > | addCertificate (ndn::ptr_lib::shared_ptr< ndn::PibKey > &key, const std::string &issuerId) |
| Add a self-signed certificate made from the key and issuer ID. More... | |
Public Attributes | |
| TestFace | face_ |
| ndn::Validator | validator_ |
|
ndn::ptr_lib::shared_ptr < ndn::ValidationPolicy > | policy_ |
| ndn::CertificateCacheV2 | cache_ |
Public Attributes inherited from IdentityManagementFixture | |
| ndn::KeyChain | keyChain_ |
Copyright (C) 2017-2018 Regents of the University of California.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version, with the additional exemption that compiling, linking, and/or using OpenSSL is allowed.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/. A copy of the GNU Lesser General Public License is in the file COPYING. ValidatorFixture extends IdentityManagementFixture to use the given policy and to set up a test face to answer Interests.
| ValidatorFixture::ValidatorFixture | ( | const ndn::ptr_lib::shared_ptr< ndn::ValidationPolicy > & | policy | ) |
Create a ValidatorFixture to use the given policy.
Set the default face_.processInterest_ to use the cache_ to respond to expressInterest. To change this behavior, you can set face_.processInterest_ to your callback, or to null to always time out.
| policy | The ValidationPolicy used by validator_. |
1.8.6