QSslCipher Class Reference

[ QtNetwork module]

The QSslCipher class represents an SSL cryptographic cipher. 更多...

方法

Special Methods


详细描述

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.


方法文档编制

QSslCipher.__init__ ( self )

构造空 QSslCipher 对象。

QSslCipher.__init__ ( self , QString  name , QSsl.SslProtocol   protocol )

构造 QSslCipher 对象为 the cipher determined by name and protocol 。 constructor accepts only supported ciphers (i.e., the name and protocol must identify a cipher in the list of ciphers returned by QSslSocket.supportedCiphers ()).

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

QSslCipher.__init__ ( self , QSslCipher   other )

Constructs an identical copy of the other cipher.

QString QSslCipher.authenticationMethod ( self )

Returns the cipher's authentication method as a QString .

QString QSslCipher.encryptionMethod ( self )

Returns the cipher's encryption method as a QString .

bool QSslCipher.isNull ( self )

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

QString QSslCipher.keyExchangeMethod ( self )

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

QString QSslCipher.name ( self )

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

另请参阅 isNull ().

QSsl.SslProtocol QSslCipher.protocol ( self )

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

另请参阅 protocolString ().

QString QSslCipher.protocolString ( self )

Returns the cipher's protocol as a QString .

另请参阅 protocol ().

int QSslCipher.supportedBits ( self )

Returns the number of bits supported by the cipher.

另请参阅 usedBits ().

int QSslCipher.usedBits ( self )

Returns the number of bits used by the cipher.

另请参阅 supportedBits ().

bool QSslCipher.__eq__ ( self , QSslCipher   other )

bool QSslCipher.__ne__ ( self , QSslCipher   other )