25#ifndef MYSQL_HARNESS_KEYRING_INCLUDED
26#define MYSQL_HARNESS_KEYRING_INCLUDED
30#include "harness_export.h"
54 virtual void store(
const std::string &uid,
const std::string &attribute,
55 const std::string &value) = 0;
67 virtual std::string
fetch(
const std::string &uid,
68 const std::string &attribute)
const = 0;
79 virtual bool remove(
const std::string &uid) = 0;
92 const std::string &attribute) = 0;
Keyring interface.
Definition: keyring.h:40
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.