Skip to content

sgns::ISecureStorage

#include <ISecureStorage.hpp>

Inherits from IComponent, std::enable_shared_from_this< ISecureStorage >

Inherited by sgns::JSONBackend, sgns::JSONSecureStorage

Public Types

Name
using std::string SecureBufferType

Public Functions

Name
~ISecureStorage() override =default
virtual outcome::result< SecureBufferType > Load(const std::string & key) =0
virtual outcome::result< void > Save(const std::string & key, const SecureBufferType & buffer) =0
virtual outcome::result< bool > DeleteKey(const std::string & key) =0

Additional inherited members

Public Functions inherited from IComponent

Name
virtual ~IComponent() =default
virtual std::string GetName() =0

Public Types Documentation

using SecureBufferType

using sgns::ISecureStorage::SecureBufferType = std::string;

Public Functions Documentation

function ~ISecureStorage

~ISecureStorage() override =default

function Load

virtual outcome::result< SecureBufferType > Load(
    const std::string & key
) =0

Reimplemented by: sgns::JSONBackend::Load, sgns::JSONSecureStorage::Load

function Save

virtual outcome::result< void > Save(
    const std::string & key,
    const SecureBufferType & buffer
) =0

Reimplemented by: sgns::JSONBackend::Save, sgns::JSONSecureStorage::Save

function DeleteKey

virtual outcome::result< bool > DeleteKey(
    const std::string & key
) =0

Reimplemented by: sgns::JSONBackend::DeleteKey, sgns::JSONSecureStorage::DeleteKey


Updated on 2026-03-04 at 13:10:43 -0800