A PEM private key (RSA or Ed25519), given inline or as a file path read on first use.
More...
#include <config.hpp>
|
| bool | is_file () const noexcept |
| const std::string & | value () const noexcept |
| | The file path or the PEM contents.
|
|
| static PrivateKey | from_file (std::string path) |
| static PrivateKey | from_pem (std::string pem) |
A PEM private key (RSA or Ed25519), given inline or as a file path read on first use.
◆ 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.