The QSslCipher class represents an SSL cryptographic cipher. 更多...
头: | #include <QSslCipher> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network) |
qmake: | QT += network |
注意: 此类的所有函数 可重入 .
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= (const QSslCipher & other ) |
bool | operator== (const QSslCipher & other ) const |
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.
另请参阅 QSslSocket and QSslKey .
Constructs an empty QSslCipher object.
[explicit]
QSslCipher::
QSslCipher
(const
QString
&
name
)
Constructs a QSslCipher object for the cipher determined by name . The constructor accepts only supported ciphers (i.e., the name must identify a cipher in the list of ciphers returned by QSslSocket::supportedCiphers()).
可以调用 isNull () after construction to check if name correctly identified a supported cipher.
Constructs a QSslCipher object for the cipher determined by name and protocol . The 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.
Constructs an identical copy of the other cipher.
[noexcept]
QSslCipher::
~QSslCipher
()
销毁 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 if this is a null cipher.
另请参阅 isNull ().
Returns the cipher's protocol type, or QSsl::UnknownProtocol if QSslCipher is unable to determine the protocol ( protocolString () may contain more information).
另请参阅 protocolString ().
Returns the cipher's protocol as a QString .
另请参阅 protocol ().
Returns the number of bits supported by the cipher.
另请参阅 usedBits ().
[noexcept]
void
QSslCipher::
swap
(
QSslCipher
&
other
)
Swaps this cipher instance with other 。此函数非常快且从不失败。
Returns the number of bits used by the cipher.
另请参阅 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.