QSslCipher Class Reference

[QtNetwork module]

该QSslCipher类表示一个SSL加密密码。More…

Methods

  • __init__ (self)
  • __init__ (self, QString name, QSsl.SslProtocol protocol)
  • __init__ (self, QSslCipher other)
  • QString authenticationMethod (self)
  • QString encryptionMethod (self)
  • bool isNull (self)
  • QString keyExchangeMethod (self)
  • QString name (self)
  • QSsl.SslProtocol protocol (self)
  • QString protocolString (self)
  • int supportedBits (self)
  • int usedBits (self)

Special Methods

  • bool __eq__ (self, QSslCipher other)
  • bool __ne__ (self, QSslCipher other)

Detailed Description

该QSslCipher类表示一个SSL加密密码。

大约一个加密密码QSslCipher存储信息。它是最常见的是用QSslSocket,无论是配置的加密套接字可以使用,或者用来显示套接字的密码给用户。


Method Documentation

  1. QSslCipher.__init__ (self)

构造一个空QSslCipher对象。

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

构造一个QSslCipher对于对象所确定的密码nameprotocol。该构造函数只接受支持的密码(即nameprotocol必须确定在所返回的密码列表中选择一个密码QSslSocket.supportedCiphers())。

您可以致电isNull( )施工后检查,如果nameprotocol正确地确定了支持的密码。

  1. QSslCipher.__init__ (self, QSslCipher other)

构造的完全相同的副本other密码。

  1. QString QSslCipher.authenticationMethod (self)

返回密码的认证方式为QString

  1. QString QSslCipher.encryptionMethod (self)

返回密码的加密方式为QString

  1. bool QSslCipher.isNull (self)

返回True如果这是一个空密码,否则返回False 。

  1. QString QSslCipher.keyExchangeMethod (self)

返回加密的密钥交换方法为QString

  1. QString QSslCipher.name (self)

返回的加密的名称,或空QString如果这是一个空密码。

See also isNull( ) 。

  1. QSsl.SslProtocol QSslCipher.protocol (self)

返回加密的协议类型,或QSsl.UnknownProtocol如果QSslCipher无法确定的协议(protocolString( )可能包含更多信息) 。

See also protocolString( ) 。

  1. QString QSslCipher.protocolString (self)

返回加密的协议作为QString

See also protocol( ) 。

  1. int QSslCipher.supportedBits (self)

返回由加密支持的比特数。

See also usedBits( ) 。

  1. int QSslCipher.usedBits (self)

返回使用的密码的位数。

See also supportedBits( ) 。

  1. bool QSslCipher.__eq__ (self, QSslCipher other)
  1. bool QSslCipher.__ne__ (self, QSslCipher other)