QCoapPrivateKey Class
La clase QCoapPrivateKey proporciona una interfaz para la gestión de claves de seguridad CoAP. Más...
| Cabecera: | #include <QCoapPrivateKey> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Coap)target_link_libraries(mytarget PRIVATE Qt6::Coap) |
| qmake: | QT += coap |
Funciones públicas
| QCoapPrivateKey() | |
| QCoapPrivateKey(const Qt::HANDLE &handle) | |
| QCoapPrivateKey(const QByteArray &key, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format = QSsl::Pem, const QByteArray &passPhrase = QByteArray()) | |
| QCoapPrivateKey(const QCoapPrivateKey &other) | |
| QCoapPrivateKey(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) |
| QCoapPrivateKey & | operator=(const QCoapPrivateKey &other) |
Descripción detallada
Una QCoapPrivateKey empaqueta una clave privada utilizada en la negociación de conexiones CoAP de forma segura. Contiene la información necesaria para la autenticación mediante claves pre-shared y certificados X.509.
Documentación de las funciones de los miembros
QCoapPrivateKey::QCoapPrivateKey()
Construye una instancia vacía de QCoapPrivateKey.
QCoapPrivateKey::QCoapPrivateKey(const Qt::HANDLE &handle)
Construye una QCoapPrivateKey a partir de una clave nativa handle.
QCoapPrivateKey::QCoapPrivateKey(const QByteArray &key, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format = QSsl::Pem, const QByteArray &passPhrase = QByteArray())
Construye una QCoapPrivateKey a partir de la matriz de bytes key utilizando el algorithm especificado y la codificación format.
Si la clave está encriptada, se requiere passPhrase para desencriptarla.
QCoapPrivateKey::QCoapPrivateKey(const QCoapPrivateKey &other)
Copia el contenido de other en esta clave, haciendo que las dos claves sean idénticas.
[noexcept] QCoapPrivateKey::QCoapPrivateKey(QCoapPrivateKey &&other)
Move-construye una QCoapPrivateKey, haciendo que apunte al mismo objeto al que apuntaba other.
[noexcept] QCoapPrivateKey::~QCoapPrivateKey()
Libera los recursos retenidos por QCoapPrivateKey.
QSsl::KeyAlgorithm QCoapPrivateKey::algorithm() const
Devuelve el algoritmo de la clave.
QSsl::EncodingFormat QCoapPrivateKey::encodingFormat() const
Devuelve el formato de codificación de la clave.
Qt::HANDLE QCoapPrivateKey::handle() const
Devuelve un puntero al manejador de la clave nativa.
bool QCoapPrivateKey::isNull() const
Devuelve true si la clave privada es nula, devuelve false en caso contrario.
QByteArray QCoapPrivateKey::key() const
Devuelve la clave privada codificada.
QByteArray QCoapPrivateKey::passPhrase() const
Devuelve la frase de contraseña de la clave.
[noexcept] void QCoapPrivateKey::swap(QCoapPrivateKey &other)
Intercambia esta clave privada con other. Esta operación es muy rápida y nunca falla.
QCoapPrivateKey &QCoapPrivateKey::operator=(const QCoapPrivateKey &other)
Copia el contenido de other en esta clave, haciendo que las dos claves sean idénticas.
Devuelve una referencia a este QCoapPrivateKey.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.