QCoapSecurityConfiguration Class▲
-
Header: QCoapSecurityConfiguration
-
qmake: QT += coap
Detailed Description▲
It holds information such as client identity, pre shared key, information about certificates, and so on.
Member Function Documentation▲
QCoapSecurityConfiguration::QCoapSecurityConfiguration()▲
Constructs a new QCoapSecurityConfiguration.
QCoapSecurityConfiguration::QCoapSecurityConfiguration(const QCoapSecurityConfiguration &other)▲
Copies the configuration and state of other.
QCoapSecurityConfiguration::QCoapSecurityConfiguration(QCoapSecurityConfiguration &&other)▲
Move-constructs a QCoapSecurityConfiguration, making it point to the same object as other was pointing to.
QCoapSecurityConfiguration::~QCoapSecurityConfiguration()▲
Releases any resources held by QCoapSecurityConfiguration.
QList<QSslCertificate> QCoapSecurityConfiguration::caCertificates() const▲
Returns this connection's certificate authority certificate database.
See Also▲
See also setCaCertificates()
QString QCoapSecurityConfiguration::defaultCipherString() const▲
QList<QSslCertificate> QCoapSecurityConfiguration::localCertificateChain() const▲
Returns the certificate chain to be presented to the peer during the handshake.
See Also▲
See also setLocalCertificateChain()
QByteArray QCoapSecurityConfiguration::preSharedKey() const▲
See Also▲
See also setPreSharedKey()
QByteArray QCoapSecurityConfiguration::preSharedKeyIdentity() const▲
See Also▲
See also setPreSharedKeyIdentity()
QCoapPrivateKey QCoapSecurityConfiguration::privateKey() const▲
Returns the private key assigned to the connection.
See Also▲
See also setPrivateKey(), localCertificateChain()
void QCoapSecurityConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates)▲
Sets certificates as the certificate authority database for the connection.
See Also▲
See also caCertificates()
void QCoapSecurityConfiguration::setDefaultCipherString(const QString &cipherString)▲
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▲
See also defaultCipherString()
void QCoapSecurityConfiguration::setLocalCertificateChain(const QList<QSslCertificate> &localChain)▲
Sets localChain as the certificate chain to present to the peer during the handshake.
See Also▲
See also localCertificateChain()
void QCoapSecurityConfiguration::setPreSharedKey(const QByteArray &preSharedKey)▲
See Also▲
See also preSharedKey()
void QCoapSecurityConfiguration::setPreSharedKeyIdentity(const QByteArray &identity)▲
See Also▲
See also preSharedKeyIdentity()
void QCoapSecurityConfiguration::setPrivateKey(const QCoapPrivateKey &key)▲
Sets the connection's private key to key.
See Also▲
See also privateKey(), setLocalCertificateChain()
void QCoapSecurityConfiguration::swap(QCoapSecurityConfiguration &other)▲
Swaps this security configuration with other. This operation is very fast and never fails.
QCoapSecurityConfiguration &QCoapSecurityConfiguration::operator=(const QCoapSecurityConfiguration &other)▲
Copies the configuration and state of other.