The QCoapSecurityConfiguration class holds configuration options during the authentication process. More...
Header: | #include <QCoapSecurityConfiguration> |
qmake: | QT += coap |
QCoapSecurityConfiguration(QCoapSecurityConfiguration &&other) | |
QCoapSecurityConfiguration(const QCoapSecurityConfiguration &other) | |
QCoapSecurityConfiguration() | |
QCoapSecurityConfiguration & | operator=(const QCoapSecurityConfiguration &other) |
~QCoapSecurityConfiguration() | |
QList<QSslCertificate> | caCertificates() const |
QString | defaultCipherString() const |
QList<QSslCertificate> | localCertificateChain() const |
QByteArray | preSharedKey() const |
QByteArray | preSharedKeyIdentity() const |
QCoapPrivateKey | privateKey() const |
void | setCaCertificates(const QList<QSslCertificate> &certificates) |
void | setDefaultCipherString(const QString &cipherString) |
void | setLocalCertificateChain(const QList<QSslCertificate> &localChain) |
void | setPreSharedKey(const QByteArray &preSharedKey) |
void | setPreSharedKeyIdentity(const QByteArray &identity) |
void | setPrivateKey(const QCoapPrivateKey &key) |
void | swap(QCoapSecurityConfiguration &other) |
It holds information such as client identity, pre shared key, information about certificates, and so on.
Move-constructs a QCoapSecurityConfiguration, making it point to the same object as other was pointing to.
Copies the configuration and state of other.
Constructs a new QCoapSecurityConfiguration.
Copies the configuration and state of other.
Releases any resources held by QCoapSecurityConfiguration.
Returns this connection's certificate authority certificate database.
See also setCaCertificates().
Returns the default cipher string.
See also setDefaultCipherString().
Returns the certificate chain to be presented to the peer during the handshake.
See also setLocalCertificateChain().
Returns the pre shared key.
See also setPreSharedKey().
Returns the PSK client identity.
See also setPreSharedKeyIdentity().
Returns the private key assigned to the connection.
See also setPrivateKey() and localCertificateChain().
Sets certificates as the certificate authority database for the connection.
See also caCertificates().
Sets the SSL cipher string to cipherString.
The security back-end (for example OpenSSL) might not include ciphers required for RFC 7252 by default. This method specifies which ciphers the back-end should use. For example to enable CCM ciphers required by RFC, "AESCCM" can be passed as cipherString.
See the OpenSSL docs for more information about cipher strings.
See also defaultCipherString().
Sets localChain as the certificate chain to present to the peer during the handshake.
See also localCertificateChain().
Sets the pre shared key to preSharedKey.
See also preSharedKey().
Sets the PSK client identity (to be advised to the server) to identity.
See also preSharedKeyIdentity().
Sets the connection's private key to key.
See also privateKey() and setLocalCertificateChain().
Swaps this security configuration 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/qcoapsecurityconfiguration.html