QSslCipher 類錶示 SSL (安全套接字層) 加密密碼。 更多...
| 頭: | #include <QSslCipher> |
| qmake: | QT += network |
| Since: | Qt 4.3 |
該類在 Qt 4.3 引入。
注意: 此類的所有函數 可重入 .
| QSslCipher (const QSslCipher & other ) | |
| QSslCipher (const QString & name , QSsl::SslProtocol protocol ) | |
| QSslCipher (const QString & name ) | |
| QSslCipher () | |
| QSslCipher & | operator= (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 |
| bool | operator== (const QSslCipher & other ) const |
QSslCipher 存儲某個加密密碼的有關信息。它最常用於 QSslSocket ,要麼用於配置套接字可以使用哪些密碼,要麼用於嚮用戶顯示套接字密碼。
另請參閱 QSslSocket and QSslKey .
構造等同副本的 other 密碼。
構造用於密碼的 QSslCipher 對象,確定通過 name and protocol 。構造函數隻接受支持的密碼 (即 name and protocol 必須以密碼列錶標識密碼,返迴通過 QSslSocket::supportedCiphers())。
可以調用 isNull () after construction to check if name and protocol correctly identified a supported cipher.
構造用於密碼的 QSslCipher 對象,確定通過 name 。構造函數隻接受支持的密碼 (即 name 必須以密碼列錶標識密碼,返迴通過 QSslSocket::supportedCiphers())。
可以調用 isNull () after construction to check if name correctly identified a supported cipher.
該函數在 Qt 5.3 引入。
構造空 QSslCipher 對象。
Copies the contents of other into this cipher, making the two ciphers identical.
銷毀 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.
返迴
true
if this cipher is the same as
other
; otherwise, false is returned.