MySQL 9.1.0
Source Code Documentation
keyring_manager.h File Reference
#include <stdexcept>
#include <string>
#include "keyring.h"
#include "keyring/master_key_file.h"

Go to the source code of this file.

Namespaces

namespace  mysql_harness
 

Functions

HARNESS_EXPORT bool mysql_harness::init_keyring (const std::string &keyring_file_path, const std::string &master_key_path, bool create_if_needed)
 Initialize an instance of a keyring to be used in the application from the contents of a file, using the given master key file. More...
 
HARNESS_EXPORT bool mysql_harness::init_keyring_with_key (const std::string &keyring_file_path, const std::string &master_key, bool create_if_needed)
 Initialize an instance of a keyring to be used in the application from the contents of a file, using the given master key. More...
 
HARNESS_EXPORT void mysql_harness::flush_keyring ()
 Saves the keyring contents to disk. More...
 
HARNESS_EXPORT Keyring * mysql_harness::get_keyring () noexcept
 Gets a previously initialized singleton instance of the keyring. More...
 
HARNESS_EXPORT void mysql_harness::reset_keyring () noexcept
 Clears the keyring singleton. More...
 

Variables

static const int mysql_harness::kMaxKeyringKeyLength = 255