Move KSNAME constant from internal static to public member of replicated_key_provider_factory class. It will be used to identify it as a system keyspace. Signed-off-by: Amnon Heiman <amnon@scylladb.com>
42 lines
751 B
C++
42 lines
751 B
C++
/*
|
|
* Copyright (C) 2015 ScyllaDB
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "encryption.hh"
|
|
|
|
namespace db {
|
|
class extensions;
|
|
}
|
|
|
|
namespace replica {
|
|
class database;
|
|
}
|
|
|
|
namespace service {
|
|
class migration_manager;
|
|
}
|
|
|
|
namespace encryption {
|
|
|
|
class replicated_key_provider_factory : public key_provider_factory {
|
|
public:
|
|
static constexpr const char* KSNAME = "system_replicated_keys";
|
|
|
|
replicated_key_provider_factory();
|
|
~replicated_key_provider_factory();
|
|
|
|
shared_ptr<key_provider> get_provider(encryption_context&, const options&) override;
|
|
|
|
static void init(db::extensions&);
|
|
static future<> on_started(::replica::database&, service::migration_manager&);
|
|
};
|
|
|
|
}
|