impl/Linux.hpp
Namespaces
Classes
Source code
#ifndef LINUX_SECURE_STORAGE_HPP
#define LINUX_SECURE_STORAGE_HPP
#include "JSONBackend.hpp"
#include <libsecret/secret.h>
namespace sgns
{
class LinuxSecureStorage : public JSONBackend
{
public:
explicit LinuxSecureStorage( std::string identifier );
~LinuxSecureStorage() override = default;
std::string GetName() override
{
return "LinuxSecureStorage";
}
outcome::result<rapidjson::Document> LoadJSON() const override;
outcome::result<void> SaveJSON( rapidjson::Document document ) override;
private:
std::string identifier_;
SecretSchema schema_;
};
}
#endif // LINUX_SECURE_STORAGE_HPP
Updated on 2026-06-28 at 18:54:57 -0700