Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::common::PrivateKey Class Reference

A PEM private key (RSA or Ed25519), given inline or as a file path read on first use. More...

#include <config.hpp>

Public Member Functions

bool is_file () const noexcept
const std::string & value () const noexcept
 The file path or the PEM contents.

Static Public Member Functions

static PrivateKey from_file (std::string path)
static PrivateKey from_pem (std::string pem)

Detailed Description

A PEM private key (RSA or Ed25519), given inline or as a file path read on first use.

Member Function Documentation

◆ from_file()

PrivateKey binance::common::PrivateKey::from_file ( std::string path)
inlinestaticnodiscard

◆ from_pem()

PrivateKey binance::common::PrivateKey::from_pem ( std::string pem)
inlinestaticnodiscard

◆ is_file()

bool binance::common::PrivateKey::is_file ( ) const
inlinenodiscardnoexcept

◆ value()

const std::string & binance::common::PrivateKey::value ( ) const
inlinenodiscardnoexcept

The file path or the PEM contents.