QSslCipher 類

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 ()

構造空的 QSslCipher 對象。

QSslCipher:: QSslCipher (const QString & name )

構造 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:: QSslCipher (const QString & name , QSsl::SslProtocol protocol )

構造 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.

QSslCipher:: QSslCipher (const QSslCipher & other )

構造等同副本的 other 密碼。

QSslCipher:: ~QSslCipher ()

銷毀 QSslCipher 對象。

QString QSslCipher:: authenticationMethod () const

Returns the cipher's authentication method as a QString .

QString QSslCipher:: encryptionMethod () const

Returns the cipher's encryption method as a QString .

bool QSslCipher:: isNull () const

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

QString QSslCipher:: keyExchangeMethod () const

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

QString QSslCipher:: name () const

Returns the name of the cipher, or an empty QString 若這為 null 密碼。

另請參閱 isNull ().

QSsl::SslProtocol QSslCipher:: protocol () const

返迴密碼協議類型,或 QSsl::UnknownProtocol if QSslCipher is unable to determine the protocol ( protocolString () may contain more information).

另請參閱 protocolString ().

QString QSslCipher:: protocolString () const

返迴密碼協議如 QString .

另請參閱 protocol ().

int QSslCipher:: supportedBits () const

返迴密碼支持的位數。

另請參閱 usedBits ().

void QSslCipher:: swap ( QSslCipher & other )

交換此密碼實例與 other 。此函數非常快且從不失敗。

該函數在 Qt 5.0 引入。

int QSslCipher:: usedBits () const

返迴密碼使用的位數。

另請參閱 supportedBits ().

bool QSslCipher:: operator!= (const QSslCipher & other ) const

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

QSslCipher &QSslCipher:: operator= ( QSslCipher && other )

移動賦值運算符。

QSslCipher &QSslCipher:: operator= (const QSslCipher & other )

Copies the contents of other into this cipher, making the two ciphers identical.

bool QSslCipher:: operator== (const QSslCipher & other ) const

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