QSslCipher¶

PyQt5.QtNetwork.QSslCipher

Description¶

The QSslCipher class represents an SSL cryptographic cipher.

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

QSslSocket, QSslKey.

Methods¶

__init__()

Constructs an empty QSslCipher object.


__init__(str)

TODO


__init__(QSslCipher)

Constructs an identical copy of the other cipher.


__init__(str, SslProtocol)

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 supportedCiphers()).

You can call isNull() after construction to check if name and protocol correctly identified a supported cipher.


authenticationMethod() → str

Returns the cipher’s authentication method as a QString.


encryptionMethod() → str

Returns the cipher’s encryption method as a QString.


__eq__(QSslCipher) → bool

TODO


isNull() → bool

Returns true if this is a null cipher; otherwise returns false.


keyExchangeMethod() → str

Returns the cipher’s key exchange method as a QString.


name() → str

Returns the name of the cipher, or an empty QString if this is a null cipher.

See also

isNull().


__ne__(QSslCipher) → bool

TODO


protocol() → SslProtocol

Returns the cipher’s protocol type, or UnknownProtocol if QSslCipher is unable to determine the protocol (protocolString() may contain more information).

See also

protocolString().


protocolString() → str

Returns the cipher’s protocol as a QString.

See also

protocol().


supportedBits() → int

Returns the number of bits supported by the cipher.

See also

usedBits().


swap(QSslCipher)

TODO


usedBits() → int

Returns the number of bits used by the cipher.

See also

supportedBits().