|
join 1.0
lightweight network framework library
|
manage private and public keys. More...
#include <tlskey.hpp>
Public Types | |
| enum | Type { Public , Private } |
| key type. More... | |
| using | Handle = EVP_PKEY* |
Public Member Functions | |
| TlsKey ()=default | |
| default constructor. | |
| TlsKey (const std::string &keyPath, Type keyType=Private) | |
| create key using a file. | |
| TlsKey (const TlsKey &other)=delete | |
| copy constructor. | |
| TlsKey & | operator= (const TlsKey &other)=delete |
| copy assignment operator. | |
| TlsKey (TlsKey &&other) | |
| move constructor. | |
| TlsKey & | operator= (TlsKey &&other) |
| move assignment operator. | |
| ~TlsKey ()=default | |
| destroy the signature stream buffer instance. | |
| operator bool () const | |
| explicit conversion function for boolean value. | |
| Handle | handle () const |
| get a pointer to the native key handle. | |
| int | length () |
| return the length in bits of the key. | |
| void | swap (TlsKey &other) |
| swap this key with other. | |
| Type | type () const |
| return the key type. | |
| void | clear () |
| clear the key. | |
manage private and public keys.
| using join::TlsKey::Handle = EVP_PKEY* |
| enum join::TlsKey::Type |
|
default |
default constructor.
create key using a file.
| keyPath | key path. |
| keyType | specifies whether the key is public or private. |
|
delete |
copy constructor.
| other | other object to copy. |
| TlsKey::TlsKey | ( | TlsKey && | other | ) |
move constructor.
| other | other object to move. |
|
default |
destroy the signature stream buffer instance.
| void TlsKey::clear | ( | ) |
clear the key.
| TlsKey::Handle TlsKey::handle | ( | ) | const |
get a pointer to the native key handle.
| int TlsKey::length | ( | ) |
return the length in bits of the key.
|
explicit |
explicit conversion function for boolean value.
| std::bad_cast. |
copy assignment operator.
| other | other object to assign. |
move assignment operator.
| other | other object to assign. |
| void TlsKey::swap | ( | TlsKey & | other | ) |
swap this key with other.
| other | other key to swap with. |
| TlsKey::Type TlsKey::type | ( | ) | const |
return the key type.