security: Update the code style in validator-config
Change-Id: I3ad02257b4e26deb0461d34952a4812ede54ca6f
diff --git a/src/security/validator-config.hpp b/src/security/validator-config.hpp
index 8d801ad..a477325 100644
--- a/src/security/validator-config.hpp
+++ b/src/security/validator-config.hpp
@@ -33,6 +33,9 @@
namespace ndn {
namespace security {
+/**
+ * @brief The validator which can be set up via a configuration file.
+ */
class ValidatorConfig : public Validator
{
public:
@@ -67,9 +70,6 @@
const size_t maxTrackedKeys = 1000,
const time::system_clock::Duration& keyTimestampTtl = DEFAULT_KEY_TIMESTAMP_TTL);
- virtual
- ~ValidatorConfig() = default;
-
void
load(const std::string& filename);
@@ -95,14 +95,14 @@
int nSteps,
const OnDataValidated& onValidated,
const OnDataValidationFailed& onValidationFailed,
- std::vector<shared_ptr<ValidationRequest>>& nextSteps);
+ std::vector<shared_ptr<ValidationRequest>>& nextSteps) override;
virtual void
checkPolicy(const Interest& interest,
int nSteps,
const OnInterestValidated& onValidated,
const OnInterestValidationFailed& onValidationFailed,
- std::vector<shared_ptr<ValidationRequest>>& nextSteps);
+ std::vector<shared_ptr<ValidationRequest>>& nextSteps) override;
private:
template<class Packet, class OnValidated, class OnFailed>
@@ -157,10 +157,6 @@
class TrustAnchorContainer
{
public:
- TrustAnchorContainer()
- {
- }
-
const std::list<shared_ptr<v1::IdentityCertificate>>&
getAll() const
{
@@ -238,7 +234,6 @@
typedef std::list<DynamicTrustAnchorContainer> DynamicContainers; // sorted by m_lastRefresh
typedef std::list<shared_ptr<v1::IdentityCertificate>> CertificateList;
-
/**
* @brief gives whether validation should be preformed
*