MySQL 8.0.40
Source Code Documentation
|
Keyring interface. More...
#include <keyring.h>
Public Member Functions | |
Keyring ()=default | |
Keyring (const Keyring &)=default | |
Keyring & | operator= (const Keyring &)=default |
virtual | ~Keyring ()=default |
virtual void | store (const std::string &uid, const std::string &attribute, const std::string &value)=0 |
Stores an attribute value in an entry. More... | |
virtual std::string | fetch (const std::string &uid, const std::string &attribute) const =0 |
Retrieves attribute value from an entry. More... | |
virtual bool | remove (const std::string &uid)=0 |
Removes an entry. More... | |
virtual bool | remove_attribute (const std::string &uid, const std::string &attribute)=0 |
Removes an attribute from an entry. More... | |
Keyring interface.
Keyrings are responsible for storage and retrieval of sensitive data (such as login credentials).
|
explicitdefault |
|
explicitdefault |
|
virtualdefault |
|
pure virtual |
Retrieves attribute value from an entry.
[in] | uid | Entry id. |
[in] | attribute | Attribute id. |
std::out_of_range | Attribute not found. |
Implemented in mysql_harness::KeyringMemory.
|
pure virtual |
Removes an entry.
[in] | uid | Entry id. |
true | uid removed |
false | uid not removed |
Implemented in mysql_harness::KeyringMemory.
|
pure virtual |
Removes an attribute from an entry.
[in] | uid | Entry id. |
[in] | attribute | Attribute id. |
true | uid removed |
false | uid not removed |
Implemented in mysql_harness::KeyringMemory.
|
pure virtual |
Stores an attribute value in an entry.
[in] | uid | Entry id. |
[in] | attribute | Attribute id. |
[in] | value | Attribute value. |
Implemented in mysql_harness::KeyringMemory.