The QSslCipher class represents an SSL cryptographic cipher. 更多...
| 頭: | #include <QSslCipher> |
| qmake: | QT += network |
| Since: | Qt 4.3 |
注意: 此類的所有函數 可重入 .
| QSslCipher () | |
| QSslCipher (const QString & name ) | |
| QSslCipher (const QString & name , QSsl::SslProtocol protocol ) | |
| QSslCipher (const QSslCipher & other ) | |
| ~QSslCipher () | |
| QString | authenticationMethod () const |
| QString | encryptionMethod () const |
| bool | isNull () const |
| QString | keyExchangeMethod () const |
| QString | name () const |
| QSsl::SslProtocol | protocol () const |
| QString | protocolString () const |
| int | supportedBits () const |
| void | swap (QSslCipher & other ) |
| int | usedBits () const |
| bool | operator!= (const QSslCipher & other ) const |
| QSslCipher & | operator= (QSslCipher && other ) |
| QSslCipher & | operator= (const QSslCipher & other ) |
| bool | operator== (const QSslCipher & other ) const |
The QSslCipher class represents an SSL cryptographic cipher.
QSslCipher stores information about one cryptographic cipher. It is most commonly used with QSslSocket ,要麼用於配置套接字可以使用哪些密碼,要麼用於嚮用戶顯示套接字密碼。
另請參閱 QSslSocket and QSslKey .
構造空的 QSslCipher 對象。
構造 QSslCipher object for the cipher determined by name 。構造函數隻接受支持的密碼 (即 name 必須以密碼列錶標識密碼,返迴通過 QSslSocket::supportedCiphers())。
可以調用 isNull () after construction to check if name correctly identified a supported cipher.
該函數在 Qt 5.3 引入。
構造 QSslCipher object for the cipher determined by name and protocol 。構造函數隻接受支持的密碼 (即 name and protocol 必須以密碼列錶標識密碼,返迴通過 QSslSocket::supportedCiphers())。
可以調用 isNull () after construction to check if name and protocol correctly identified a supported cipher.
構造等同副本的 other 密碼。
銷毀 QSslCipher 對象。
Returns the cipher's authentication method as a QString .
Returns the cipher's encryption method as a QString .
返迴
true
if this is a null cipher; otherwise returns
false
.
Returns the cipher's key exchange method as a QString .
Returns the name of the cipher, or an empty QString 若這為 null 密碼。
另請參閱 isNull ().
返迴密碼協議類型,或 QSsl::UnknownProtocol if QSslCipher is unable to determine the protocol ( protocolString () may contain more information).
另請參閱 protocolString ().
返迴密碼協議如 QString .
另請參閱 protocol ().
返迴密碼支持的位數。
另請參閱 usedBits ().
交換此密碼實例與 other 。此函數非常快且從不失敗。
該函數在 Qt 5.0 引入。
返迴密碼使用的位數。
另請參閱 supportedBits ().
返迴
true
if this cipher is not the same as
other
; otherwise, false is returned.
移動賦值運算符。
Copies the contents of other into this cipher, making the two ciphers identical.
返迴
true
if this cipher is the same as
other
; otherwise, false is returned.