26#ifndef MYSQL_HARNESS_KEYRING_INCLUDED
27#define MYSQL_HARNESS_KEYRING_INCLUDED
31#include "harness_export.h"
55 virtual void store(
const std::string &uid,
const std::string &attribute,
56 const std::string &value) = 0;
68 virtual std::string
fetch(
const std::string &uid,
69 const std::string &attribute)
const = 0;
80 virtual bool remove(
const std::string &uid) = 0;
93 const std::string &attribute) = 0;
Keyring interface.
Definition: keyring.h:41
Keyring & operator=(const Keyring &)=default
virtual bool remove(const std::string &uid)=0
Removes an entry.
virtual ~Keyring()=default
Keyring(const Keyring &)=default
virtual std::string fetch(const std::string &uid, const std::string &attribute) const =0
Retrieves attribute value from an entry.
virtual void store(const std::string &uid, const std::string &attribute, const std::string &value)=0
Stores an attribute value in an entry.
virtual bool remove_attribute(const std::string &uid, const std::string &attribute)=0
Removes an attribute from an entry.