内容表

上一话题

QSslCertificateExtension

下一话题

QSslConfiguration

QSslCipher

QSslCipher class represents an SSL cryptographic cipher. 更多

Inheritance diagram of PySide2.QtNetwork.QSslCipher

详细描述

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.

class QSslCipher

QSslCipher(other)

QSslCipher(name)

QSslCipher(name, protocol)

param name

unicode

param protocol

SslProtocol

param other

QSslCipher

构造空 QSslCipher 对象。

构造 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() ).

可以调用 isNull() after construction to check if name and protocol correctly identified a supported cipher.

PySide2.QtNetwork.QSslCipher. authenticationMethod ( )
返回类型

unicode

Returns the cipher’s authentication method as a QString .

PySide2.QtNetwork.QSslCipher. encryptionMethod ( )
返回类型

unicode

Returns the cipher’s encryption method as a QString .

PySide2.QtNetwork.QSslCipher. isNull ( )
返回类型

bool

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

PySide2.QtNetwork.QSslCipher. keyExchangeMethod ( )
返回类型

unicode

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

PySide2.QtNetwork.QSslCipher. name ( )
返回类型

unicode

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

另请参阅

isNull()

PySide2.QtNetwork.QSslCipher. __ne__ ( other )
参数

other QSslCipher

返回类型

bool

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

PySide2.QtNetwork.QSslCipher. __eq__ ( other )
参数

other QSslCipher

返回类型

bool

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

PySide2.QtNetwork.QSslCipher. protocol ( )
返回类型

SslProtocol

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

另请参阅

protocolString()

PySide2.QtNetwork.QSslCipher. protocolString ( )
返回类型

unicode

Returns the cipher’s protocol as a QString .

另请参阅

protocol()

PySide2.QtNetwork.QSslCipher. supportedBits ( )
返回类型

int

Returns the number of bits supported by the cipher.

另请参阅

usedBits()

PySide2.QtNetwork.QSslCipher. swap ( other )
参数

other QSslCipher

Swaps this cipher instance with other 。此函数非常快,且从不失败。

PySide2.QtNetwork.QSslCipher. usedBits ( )
返回类型

int

Returns the number of bits used by the cipher.

另请参阅

supportedBits()