96 std::shared_ptr<Database::SqlDatabase> m_database;
97 std::vector<Credential> m_credentials;
A model of a credential stored in a keyring.
Definition credential.h:35
A model of a keyring object for managing credentials.
Definition keyring.h:40
Keyring(const std::string &name)
Constructs a Keyring.
const std::vector< Credential > & getCredentials() const
Gets all credentials in the keyring.
std::optional< Credential > getCredential(const std::string &name)
Gets the credential matching the provided name.
bool isSavingToDisk() const
Gets whether the keyring is saving data to disk.
bool updateCredential(const Credential &credential)
Updates a credential in the keyring.
bool deleteCredential(const std::string &name)
Deletes a credential from the keyring.
bool addCredential(const Credential &credential)
Adds a credential to the keyring.
bool destroy()
Destroys the keyring.
const std::string & getName() const
Gets the name of the keyring.
Definition credential.h:30