Files
scylladb/ent/encryption/local_file_provider.hh
Andrzej Jackowski f8156702de tree: add missing -present to copyright headers
~2076 files used "Copyright (C) YYYY-present ScyllaDB" while
~88 files used "Copyright (C) YYYY ScyllaDB". This
inconsistency leads to unnecessary code review discussions
and gradual spread of the less common format.

Standardize all ScyllaDB copyright headers to use -present.

Fixes SCYLLADB-1984

Closes scylladb/scylladb#29876
2026-05-21 10:57:42 +02:00

42 lines
935 B
C++

/*
* Copyright (C) 2018-present ScyllaDB
*
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
*/
#pragma once
#include "encryption.hh"
#include "system_key.hh"
namespace encryption {
const extern sstring default_key_file_path;
class local_file_provider;
class local_file_provider_factory : public key_provider_factory {
public:
static shared_ptr<key_provider> find(encryption_context&, const sstring& path);
shared_ptr<key_provider> get_provider(encryption_context&, const options&) override;
};
class local_system_key : public system_key {
shared_ptr<local_file_provider> _provider;
public:
local_system_key(encryption_context&, const sstring&);
~local_system_key();
future<shared_ptr<symmetric_key>> get_key() override;
future<> validate() const override;
const sstring& name() const override;
bool is_local() const override {
return true;
}
};
}