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::JSONSecureStorage::Load, sgns::JSONBackend::Load

function Save

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

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

function DeleteKey

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

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


Updated on 2026-08-06 at 13:59:17 +0000