The QCoapPrivateKey class provides an interface for managing CoAP security keys. More...
Header: | #include <QCoapPrivateKey> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Coap) target_link_libraries(mytarget PRIVATE Qt6::Coap) |
qmake: | QT += coap |
QCoapPrivateKey(QCoapPrivateKey &&other) | |
QCoapPrivateKey(const QCoapPrivateKey &other) | |
QCoapPrivateKey(const Qt::HANDLE &handle) | |
QCoapPrivateKey(const QByteArray &key, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format = QSsl::Pem, const QByteArray &passPhrase = QByteArray()) | |
QCoapPrivateKey() | |
QCoapPrivateKey & | operator=(const QCoapPrivateKey &other) |
~QCoapPrivateKey() | |
QSsl::KeyAlgorithm | algorithm() const |
QSsl::EncodingFormat | encodingFormat() const |
Qt::HANDLE | handle() const |
bool | isNull() const |
QByteArray | key() const |
QByteArray | passPhrase() const |
void | swap(QCoapPrivateKey &other) |
A QCoapPrivateKey packages a private key used in negotiating CoAP connections securely. It holds the information required for authentication using pre-shared
keys and X.509 certificates.
Move-constructs a QCoapPrivateKey, making it point to the same object as other was pointing to.
Copies the contents of other into this key, making the two keys identical.
Constructs a QCoapPrivateKey from a native key handle.
Constructs a QCoapPrivateKey from the byte array key using the specified algorithm and encoding format.
If the key is encrypted then passPhrase is required to decrypt it.
Constructs an empty instance of QCoapPrivateKey.
Copies the contents of other into this key, making the two keys identical.
Returns a reference to this QCoapPrivateKey.
Releases any resources held by QCoapPrivateKey.
Returns the key algorithm.
Returns the encoding format of the key.
Returns a pointer to the native key handle.
Returns true
if the private key is null, returns false
otherwise.
Returns the encoded private key.
Returns the passphrase for the key.
Swaps this private key with other. This operation is very fast and never fails.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: