QSslCipher露

The QSslCipher class represents an SSL cryptographic cipher. More鈥�

Inheritance diagram of PySide2.QtNetwork.QSslCipher

Synopsis露

Functions露

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鈥檚 ciphers to the user.

See also

QSslSocket QSslKey

class PySide2.QtNetwork.QSslCipher露

PySide2.QtNetwork.QSslCipher(other)

PySide2.QtNetwork.QSslCipher(name)

PySide2.QtNetwork.QSslCipher(name, protocol)

param name:

str

param protocol:

SslProtocol

param other:

PySide2.QtNetwork.QSslCipher

Constructs an empty QSslCipher object.

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.

PySide2.QtNetwork.QSslCipher.authenticationMethod()露
Return type:

str

Returns the cipher鈥檚 authentication method as a QString .

PySide2.QtNetwork.QSslCipher.encryptionMethod()露
Return type:

str

Returns the cipher鈥檚 encryption method as a QString .

PySide2.QtNetwork.QSslCipher.isNull()露
Return type:

bool

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

PySide2.QtNetwork.QSslCipher.keyExchangeMethod()露
Return type:

str

Returns the cipher鈥檚 key exchange method as a QString .

PySide2.QtNetwork.QSslCipher.name()露
Return type:

str

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

See also

isNull()

PySide2.QtNetwork.QSslCipher.__ne__(other)露
Parameters:

other 鈥� PySide2.QtNetwork.QSslCipher

Return type:

bool

Returns true if this cipher is not the same as other ; otherwise, false is returned.

PySide2.QtNetwork.QSslCipher.__eq__(other)露
Parameters:

other 鈥� PySide2.QtNetwork.QSslCipher

Return type:

bool

Returns true if this cipher is the same as other ; otherwise, false is returned.

PySide2.QtNetwork.QSslCipher.protocol()露
Return type:

SslProtocol

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

See also

protocolString()

PySide2.QtNetwork.QSslCipher.protocolString()露
Return type:

str

Returns the cipher鈥檚 protocol as a QString .

See also

protocol()

PySide2.QtNetwork.QSslCipher.supportedBits()露
Return type:

int

Returns the number of bits supported by the cipher.

See also

usedBits()

PySide2.QtNetwork.QSslCipher.swap(other)露
Parameters:

other 鈥� PySide2.QtNetwork.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

supportedBits()