app/integration/KeyStorageFactory.hpp¶
Classes¶
| Name | |
|---|---|
| class | KeyStorageFactory |
Detailed Description¶
Date: 2024-02-22 Henrique A. Klein ([email protected])
Source code¶
#ifndef _KEY_STORAGE_FACTORY_HPP_
#define _KEY_STORAGE_FACTORY_HPP_
#include "application/impl/local_key_storage.hpp"
class KeyStorageFactory
{
public:
static std::shared_ptr<sgns::application::KeyStorage> create( const std::string &path )
{
auto result = sgns::application::LocalKeyStorage::create( path );
if ( result )
{
return result.value();
}
else
{
throw std::runtime_error( "Key storage not found on keystore path" );
}
}
};
#endif
Updated on 2026-03-04 at 13:10:44 -0800