|
PLCnext API Documentation
22.3.0.20
|
class which represents a asymmetric key pair More...
#include <KeyPair.hpp>

Public Member Functions | |
| KeyPair () | |
| Constructs an KeyPair | |
| KeyPair (const KeyPair &arg)=delete | |
| Copy constructor. More... | |
| KeyPair & | operator= (const KeyPair &arg)=delete |
| Assignment operator. More... | |
| virtual | ~KeyPair (void) |
| Destructs this instance and frees all resources. More... | |
| EVP_PKEY * | GetPkey () |
| returns a pointer to the OpenSSL EVP_PKEY* structure initialized with this KeyPair More... | |
| virtual void | LoadFromFile (const String &filename) |
| Loads the KeyPair from a PEM encoded file filename More... | |
| void | LoadFromMemory (const std::vector< byte > &data) |
| void | InitSslContext (SSL_CTX *pSslCtx) const |
| std::vector< byte > | GetPublicKey () |
| summary>Returns the type of this key pair More... | |
| KeyPairType | GetKeyType () |
| summary>saves this KeyPair to a file in PEM format (the private key is not encrypted!) More... | |
| void | WriteToFile (const String &filename) |
| void | GenerateKeyPair (KeyPairType type) |
Protected Attributes | |
| OpenSslEVP_PKEY | opensslkey |
| KeyPairType | keyType |
class which represents a asymmetric key pair
|
delete |
Copy constructor.
|
virtual |
Destructs this instance and frees all resources.
|
inline |
summary>saves this KeyPair to a file in PEM format (the private key is not encrypted!)
|
inline |
returns a pointer to the OpenSSL EVP_PKEY* structure initialized with this KeyPair
Please Note: pointer is only valid when the KePair is not destroyed
| std::vector<byte> Arp::System::Commons::Security::KeyPair::GetPublicKey | ( | ) |
summary>Returns the type of this key pair
| void Arp::System::Commons::Security::KeyPair::InitSslContext | ( | SSL_CTX * | pSslCtx | ) | const |
summary>Returns the public key portion of this key pair (PEM format)
returns>byte vector with PEM encoded public key
|
virtual |
| void Arp::System::Commons::Security::KeyPair::LoadFromMemory | ( | const std::vector< byte > & | data | ) |
summary>Initializes a OpenSSL SSL_CTX structure ith this KeyPair
param name="pSslCtx">Pointer to the OpenSSL SSL_CTX structure to initialize
Assignment operator.
| void Arp::System::Commons::Security::KeyPair::WriteToFile | ( | const String & | filename | ) |
summary>Generates a new key pair and replaced the current key pair with the generated
param name="type">type of key to generate
1.8.13