MySQL 9.1.0
Source Code Documentation
oci::Signing_Key Class Reference

#include <signing_key.h>

Public Member Functions

 Signing_Key (const std::string &file_name)
 Constructor. More...
 
 Signing_Key (ssl::Key_Content)
 Constructor. More...
 
 Signing_Key ()
 Constructor. More...
 
 Signing_Key (const Signing_Key &)=delete
 
Signing_Keyoperator= (const Signing_Key &)=delete
 
 Signing_Key (Signing_Key &&)=default
 
Signing_Keyoperator= (Signing_Key &&)=delete
 
 operator bool () const
 
std::string get_public_key ()
 
Data sign (const std::string &message)
 
Data sign (const void *message, size_t length)
 

Private Attributes

ssl::EVP_PKEY_ptr m_private_key
 Private key from a local file, used to Signing_Key::sign() requests. More...
 
std::string m_public_key
 

Constructor & Destructor Documentation

◆ Signing_Key() [1/5]

oci::Signing_Key::Signing_Key ( const std::string &  file_name)

Constructor.

Read the key from the file.

◆ Signing_Key() [2/5]

oci::Signing_Key::Signing_Key ( ssl::Key_Content  key_content)
explicit

Constructor.

Read the key from the memory string.

◆ Signing_Key() [3/5]

oci::Signing_Key::Signing_Key ( )

Constructor.

Generate a key.

◆ Signing_Key() [4/5]

oci::Signing_Key::Signing_Key ( const Signing_Key )
delete

◆ Signing_Key() [5/5]

oci::Signing_Key::Signing_Key ( Signing_Key &&  )
default

Member Function Documentation

◆ get_public_key()

std::string oci::Signing_Key::get_public_key ( )
inline

◆ operator bool()

oci::Signing_Key::operator bool ( ) const
inline

◆ operator=() [1/2]

Signing_Key & oci::Signing_Key::operator= ( const Signing_Key )
delete

◆ operator=() [2/2]

Signing_Key & oci::Signing_Key::operator= ( Signing_Key &&  )
delete

◆ sign() [1/2]

Data oci::Signing_Key::sign ( const std::string &  message)

◆ sign() [2/2]

Data oci::Signing_Key::sign ( const void *  message,
size_t  length 
)

Member Data Documentation

◆ m_private_key

ssl::EVP_PKEY_ptr oci::Signing_Key::m_private_key
private

Private key from a local file, used to Signing_Key::sign() requests.

◆ m_public_key

std::string oci::Signing_Key::m_public_key
private

The documentation for this class was generated from the following files: