QCoapSecurityConfiguration#
The QCoapSecurityConfiguration class holds configuration options during the authentication process. More…
Synopsis#
Functions#
def
caCertificates()def
defaultCipherString()def
localCertificateChain()def
preSharedKey()def
preSharedKeyIdentity()def
privateKey()def
setCaCertificates(certificates)def
setDefaultCipherString(cipherString)def
setLocalCertificateChain(localChain)def
setPreSharedKey(preSharedKey)def
setPreSharedKeyIdentity(preSharedKeyIdentity)def
setPrivateKey(key)def
swap(other)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
It holds information such as client identity, pre shared key, information about certificates, and so on.
- class PySide6.QtCoap.QCoapSecurityConfiguration#
PySide6.QtCoap.QCoapSecurityConfiguration(other)
- Parameters:
Constructs a new QCoapSecurityConfiguration .
Copies the configuration and state of other.
- PySide6.QtCoap.QCoapSecurityConfiguration.caCertificates()#
- Return type:
Returns this connection’s certificate authority certificate database.
See also
- PySide6.QtCoap.QCoapSecurityConfiguration.defaultCipherString()#
- Return type:
str
Returns the default cipher string.
See also
- PySide6.QtCoap.QCoapSecurityConfiguration.localCertificateChain()#
- Return type:
Returns the certificate chain to be presented to the peer during the handshake.
See also
- Return type:
Returns the pre shared key.
See also
- Return type:
Returns the PSK client identity.
See also
- PySide6.QtCoap.QCoapSecurityConfiguration.privateKey()#
- Return type:
Returns the private key assigned to the connection.
See also
- PySide6.QtCoap.QCoapSecurityConfiguration.setCaCertificates(certificates)#
- Parameters:
certificates –
Sets certificates as the certificate authority database for the connection.
See also
- PySide6.QtCoap.QCoapSecurityConfiguration.setDefaultCipherString(cipherString)#
- Parameters:
cipherString – str
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
- PySide6.QtCoap.QCoapSecurityConfiguration.setLocalCertificateChain(localChain)#
- Parameters:
localChain –
Sets localChain as the certificate chain to present to the peer during the handshake.
See also
- Parameters:
preSharedKey –
PySide6.QtCore.QByteArray
Sets the pre shared key to preSharedKey.
See also
- Parameters:
preSharedKeyIdentity –
PySide6.QtCore.QByteArray
Sets the PSK client identity (to be advised to the server) to identity.
See also
- PySide6.QtCoap.QCoapSecurityConfiguration.setPrivateKey(key)#
- Parameters:
Sets the connection’s private key to key.
See also
- PySide6.QtCoap.QCoapSecurityConfiguration.swap(other)#
- Parameters:
Swaps this security configuration with other. This operation is very fast and never fails.