38 std::optional<Keyring::Credential>
get(
const std::string& name)
noexcept;
45 std::optional<Keyring::Credential>
create(
const std::string& name)
noexcept;
72 bool remove(
const std::string& name)
noexcept;
A model of a credential stored in a keyring.
Definition credential.h:34
Definition credentials.h:31
std::optional< Keyring::Credential > create(const std::string &name) noexcept
Creates a new credential with a random password and adds it to the system's credential manager.
bool add(const Keyring::Credential &credential) noexcept
Adds a new credential object to the system's credential manager.
std::optional< Keyring::Credential > get(const std::string &name) noexcept
Gets a credential from the system's credential manager.
bool update(const Keyring::Credential &credential) noexcept
Updates a credential object in the system's credential manager.
bool remove(const std::string &name) noexcept
Removes a credential object from the system's credential manager.