QSslCipher¶
The QSslCipher
class 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¶
QSslCipher
stores information about one cryptographic cipher. It is most commonly used with QSslSocket
, either for configuring which ciphers the socket can use, or for displaying the socket’s ciphers to the user.
See also
- class PySide6.QtNetwork.QSslCipher¶
PySide6.QtNetwork.QSslCipher(other)
PySide6.QtNetwork.QSslCipher(name)
PySide6.QtNetwork.QSslCipher(name, protocol)
- Parameters
other –
PySide6.QtNetwork.QSslCipher
protocol –
SslProtocol
name – str
Constructs an empty QSslCipher
object.
Constructs an identical copy of the other
cipher.
Constructs a QSslCipher
object for the cipher determined by name
. The constructor accepts only supported ciphers (i.e., the name
must identify a cipher in the list of ciphers returned by QSslSocket::supportedCiphers()).
You can call isNull()
after construction to check if name
correctly identified a supported cipher.
Constructs a QSslCipher
object for the cipher determined by name
and protocol
. The constructor accepts only supported ciphers (i.e., the name
and protocol
must identify a cipher in the list of ciphers returned by QSslSocket::supportedCiphers()).
You can call isNull()
after construction to check if name
and protocol
correctly identified a supported cipher.
- PySide6.QtNetwork.QSslCipher.authenticationMethod()¶
- Return type
str
Returns the cipher’s authentication method as a QString
.
- PySide6.QtNetwork.QSslCipher.encryptionMethod()¶
- Return type
str
Returns the cipher’s encryption method as a QString
.
- PySide6.QtNetwork.QSslCipher.isNull()¶
- Return type
bool
Returns true
if this is a null cipher; otherwise returns false
.
- PySide6.QtNetwork.QSslCipher.keyExchangeMethod()¶
- Return type
str
Returns the cipher’s key exchange method as a QString
.
- PySide6.QtNetwork.QSslCipher.name()¶
- Return type
str
Returns the name of the cipher, or an empty QString
if this is a null cipher.
See also
- PySide6.QtNetwork.QSslCipher.__ne__(other)¶
- Parameters
other –
PySide6.QtNetwork.QSslCipher
- Return type
bool
Returns true
if this cipher is not the same as other
; otherwise, false is returned.
- PySide6.QtNetwork.QSslCipher.__eq__(other)¶
- Parameters
other –
PySide6.QtNetwork.QSslCipher
- Return type
bool
Returns true
if this cipher is the same as other
; otherwise, false is returned.
- PySide6.QtNetwork.QSslCipher.protocol()¶
- Return type
Returns the cipher’s protocol type, or UnknownProtocol
if QSslCipher
is unable to determine the protocol ( protocolString()
may contain more information).
See also
- PySide6.QtNetwork.QSslCipher.protocolString()¶
- Return type
str
Returns the cipher’s protocol as a QString
.
See also
- PySide6.QtNetwork.QSslCipher.supportedBits()¶
- Return type
int
Returns the number of bits supported by the cipher.
See also
- PySide6.QtNetwork.QSslCipher.swap(other)¶
- Parameters
other –
PySide6.QtNetwork.QSslCipher
Swaps this cipher instance with other
. This function is very fast and never fails.
- PySide6.QtNetwork.QSslCipher.usedBits()¶
- Return type
int
Returns the number of bits used by the cipher.
See also
© 2022 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.