QSslCipher¶
The
QSslCipherclass represents an SSL cryptographic cipher. More…

Synopsis¶
Functions¶
def
__eq__(other)def
__ne__(other)def
authenticationMethod()def
encryptionMethod()def
isNull()def
keyExchangeMethod()def
name()def
protocol()def
protocolString()def
supportedBits()def
swap(other)def
usedBits()
Detailed Description¶
QSslCipherstores information about one cryptographic cipher. It is most commonly used withQSslSocket, either for configuring which ciphers the socket can use, or for displaying the socket’s ciphers to the user.See also
-
class
QSslCipher¶ QSslCipher(other)
QSslCipher(name)
QSslCipher(name, protocol)
- param name
unicode
- param protocol
SslProtocol- param other
Constructs an empty
QSslCipherobject.Constructs a
QSslCipherobject for the cipher determined bynameandprotocol. The constructor accepts only supported ciphers (i.e., thenameandprotocolmust identify a cipher in the list of ciphers returned bysupportedCiphers()).You can call
isNull()after construction to check ifnameandprotocolcorrectly identified a supported cipher.
-
PySide2.QtNetwork.QSslCipher.authenticationMethod()¶ - Return type
unicode
Returns the cipher’s authentication method as a
QString.
-
PySide2.QtNetwork.QSslCipher.encryptionMethod()¶ - Return type
unicode
Returns the cipher’s encryption method as a
QString.
-
PySide2.QtNetwork.QSslCipher.isNull()¶ - Return type
bool
Returns
trueif this is a null cipher; otherwise returnsfalse.
-
PySide2.QtNetwork.QSslCipher.keyExchangeMethod()¶ - Return type
unicode
Returns the cipher’s key exchange method as a
QString.
-
PySide2.QtNetwork.QSslCipher.name()¶ - Return type
unicode
Returns the name of the cipher, or an empty
QStringif this is a null cipher.See also
-
PySide2.QtNetwork.QSslCipher.__ne__(other)¶ - Parameters
other –
QSslCipher- Return type
bool
Returns
trueif this cipher is not the same asother; otherwise, false is returned.
-
PySide2.QtNetwork.QSslCipher.__eq__(other)¶ - Parameters
other –
QSslCipher- Return type
bool
Returns
trueif this cipher is the same asother; otherwise, false is returned.
-
PySide2.QtNetwork.QSslCipher.protocol()¶ - Return type
SslProtocol
Returns the cipher’s protocol type, or
UnknownProtocolifQSslCipheris unable to determine the protocol (protocolString()may contain more information).See also
-
PySide2.QtNetwork.QSslCipher.protocolString()¶ - Return type
unicode
Returns the cipher’s protocol as a
QString.See also
-
PySide2.QtNetwork.QSslCipher.supportedBits()¶ - Return type
int
Returns the number of bits supported by the cipher.
See also
-
PySide2.QtNetwork.QSslCipher.swap(other)¶ - Parameters
other –
QSslCipher
Swaps this cipher instance with
other. This function is very fast and never fails.
-
PySide2.QtNetwork.QSslCipher.usedBits()¶ - Return type
int
Returns the number of bits used by the cipher.
See also
© 2018 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.