46#include <StormByte/expected.hxx>
47#include <StormByte/safe/map.hxx>
48#include <StormByte/safe/string.hxx>
49#include <StormByte/size.hxx>
50#include <StormByte/type_traits/safe.hxx>
Shared, wiped container for passwords and raw key material.
Definition password.hxx:108
void Clear() noexcept
Drop every password.
void Store(std::string_view name, Password password)
Store or overwrite a named password.
Vault(Vault &&other) noexcept
Move constructor.
ExpectedPassword Get(std::string_view name) const
Look up a password.
Vault(const Vault &)=delete
StormByte::Size Size() const noexcept
Number of stored passwords.
~Vault() noexcept
Destructor.
void Remove(std::string_view name)
Drop one password.
bool Contains(std::string_view name) const
Whether a name exists.
bool Empty() const noexcept
Whether the vault is empty.
STORMBYTE_DECLARE_MAYBE_SAFE(class StormByte::System::Device::Access)
Wiped secrets of the Crypto module (Password, Vault).
StormByte::Expected< Password, VaultException > ExpectedPassword
Password or a vault error.
Definition vault.hxx:73
Crypto module of the StormByte suite.
Definition aead.hxx:53
Root namespace of the StormByte suite.
std::conditional_t< Type::Reference< T >, std::expected< std::reference_wrapper< std::remove_reference_t< T > >, Safe::Shared< E > >, std::expected< T, Safe::Shared< E > > > Expected
#define STORMBYTE_CRYPTO_PUBLIC
Definition visibility.h:53