The QCoapSecurityConfiguration class holds configuration options during the authentication process. 更多...
| 頭: | #include <QCoapSecurityConfiguration> |
| qmake: | QT += coap |
| QCoapSecurityConfiguration (QCoapSecurityConfiguration && other ) | |
| QCoapSecurityConfiguration (const QCoapSecurityConfiguration & other ) | |
| QCoapSecurityConfiguration () | |
| QCoapSecurityConfiguration & | operator= (const QCoapSecurityConfiguration & other ) |
| ~QCoapSecurityConfiguration () | |
| QVector<QSslCertificate> | caCertificates () const |
| QString | defaultCipherString () const |
| QVector<QSslCertificate> | localCertificateChain () const |
| QByteArray | preSharedKey () const |
| QByteArray | preSharedKeyIdentity () const |
| QCoapPrivateKey | privateKey () const |
| void | setCaCertificates (const QVector<QSslCertificate> & certificates ) |
| void | setDefaultCipherString (const QString & cipherString ) |
| void | setLocalCertificateChain (const QVector<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 所指嚮的。
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.
另請參閱 setCaCertificates ().
Returns the default cipher string.
另請參閱 setDefaultCipherString ().
Returns the certificate chain to be presented to the peer during the handshake.
另請參閱 setLocalCertificateChain ().
Returns the pre shared key.
另請參閱 setPreSharedKey ().
Returns the PSK client identity.
另請參閱 setPreSharedKeyIdentity ().
Returns the private key assigned to the connection.
另請參閱 setPrivateKey () 和 localCertificateChain ().
設置 certificates as the certificate authority database for the connection.
另請參閱 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 .
見 OpenSSL docs for more information about cipher strings.
另請參閱 defaultCipherString ().
設置 localChain as the certificate chain to present to the peer during the handshake.
另請參閱 localCertificateChain ().
Sets the pre shared key to preSharedKey .
另請參閱 preSharedKey ().
Sets the PSK client identity (to be advised to the server) to identity .
另請參閱 preSharedKeyIdentity ().
Sets the connection's private key to key .
另請參閱 privateKey () 和 setLocalCertificateChain ().
Swaps this security configuration with other 。此操作很快且從不失敗。