The QCoapPrivateKey class provides an interface for managing CoAP security keys. More...
Header: | #include <QCoapPrivateKey> |
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.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qcoapprivatekey.html