Class KeyPairImpl.
More...
#include <KeyPairImpl.h>
|
| KeyPairImpl (const std::string &name, Type type) |
|
virtual | ~KeyPairImpl () |
| Create KeyPairImpl with specified type and name.
|
|
virtual int | size () const =0 |
| Destroys the KeyPairImpl.
|
|
virtual void | save (const std::string &publicKeyFile, const std::string &privateKeyFile="", const std::string &privateKeyPassphrase="") const =0 |
| Returns the key size.
|
|
virtual void | save (std::ostream *pPublicKeyStream, std::ostream *pPrivateKeyStream=0, const std::string &privateKeyPassphrase="") const =0 |
|
const std::string & | name () const |
|
Type | type () const |
| Returns key pair name.
|
|
| RefCountedObject () |
|
void | duplicate () const |
|
void | release () const noexcept |
| Increments the object's reference count.
|
|
int | referenceCount () const |
|
Class KeyPairImpl.
Definition at line 34 of file KeyPairImpl.h.
◆ ByteVec
◆ Ptr
◆ Type
Enumerator |
---|
KT_RSA_IMPL | |
KT_EC_IMPL | |
Definition at line 38 of file KeyPairImpl.h.
◆ KeyPairImpl() [1/2]
Poco::Crypto::KeyPairImpl::KeyPairImpl |
( |
const std::string & | name, |
|
|
Type | type ) |
◆ ~KeyPairImpl()
virtual Poco::Crypto::KeyPairImpl::~KeyPairImpl |
( |
| ) |
|
|
virtual |
◆ KeyPairImpl() [2/2]
Poco::Crypto::KeyPairImpl::KeyPairImpl |
( |
| ) |
|
|
private |
◆ name()
const std::string & Poco::Crypto::KeyPairImpl::name |
( |
| ) |
const |
|
inline |
Exports the public and private key to the given streams.
If a null pointer is passed for a stream, the corresponding key is not exported.
Definition at line 92 of file KeyPairImpl.h.
◆ save() [1/2]
virtual void Poco::Crypto::KeyPairImpl::save |
( |
const std::string & | publicKeyFile, |
|
|
const std::string & | privateKeyFile = "", |
|
|
const std::string & | privateKeyPassphrase = "" ) const |
|
pure virtual |
◆ save() [2/2]
virtual void Poco::Crypto::KeyPairImpl::save |
( |
std::ostream * | pPublicKeyStream, |
|
|
std::ostream * | pPrivateKeyStream = 0, |
|
|
const std::string & | privateKeyPassphrase = "" ) const |
|
pure virtual |
Exports the public and private keys to the given files.
If an empty filename is specified, the corresponding key is not exported.
Implemented in Poco::Crypto::RSAKeyImpl.
◆ size()
virtual int Poco::Crypto::KeyPairImpl::size |
( |
| ) |
const |
|
pure virtual |
◆ type()
◆ _name
std::string Poco::Crypto::KeyPairImpl::_name |
|
private |
◆ _openSSLInitializer
◆ _type
Type Poco::Crypto::KeyPairImpl::_type |
|
private |
The documentation for this class was generated from the following file:
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASE/AseApi-main/include/Poco/Poco/Crypto/KeyPairImpl.h