Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QSslCipher Class

TheQSslCipher class represents an SSL cryptographic cipher.More...

Header:#include <QSslCipher>
Since: Qt 4.3

Note: All functions in this class arereentrant.

Public Functions

QSslCipher()
QSslCipher(const QString & name, QSsl::SslProtocol protocol)
QSslCipher(const QSslCipher & other)
~QSslCipher()
QStringauthenticationMethod() const
QStringencryptionMethod() const
boolisNull() const
QStringkeyExchangeMethod() const
QStringname() const
QSsl::SslProtocolprotocol() const
QStringprotocolString() const
intsupportedBits() const
intusedBits() const
booloperator!=(const QSslCipher & other) const
QSslCipher &operator=(const QSslCipher & other)
booloperator==(const QSslCipher & other) const

Detailed Description

TheQSslCipher class represents an SSL cryptographic cipher.

QSslCipher stores information about one cryptographic cipher. It is most commonly used withQSslSocket, either for configuring which ciphers the socket can use, or for displaying the socket's ciphers to the user.

See alsoQSslSocket andQSslKey.

Member Function Documentation

QSslCipher::QSslCipher()

Constructs an emptyQSslCipher object.

QSslCipher::QSslCipher(constQString & name,QSsl::SslProtocol protocol)

Constructs aQSslCipher object for the cipher determined byname andprotocol. The constructor accepts only supported ciphers (i.e., thename andprotocol must identify a cipher in the list of ciphers returned byQSslSocket::supportedCiphers()).

You can callisNull() after construction to check ifname andprotocol correctly identified a supported cipher.

QSslCipher::QSslCipher(constQSslCipher & other)

Constructs an identical copy of theother cipher.

QSslCipher::~QSslCipher()

Destroys theQSslCipher object.

QString QSslCipher::authenticationMethod() const

Returns the cipher's authentication method as aQString.

QString QSslCipher::encryptionMethod() const

Returns the cipher's encryption method as aQString.

bool QSslCipher::isNull() const

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

QString QSslCipher::keyExchangeMethod() const

Returns the cipher's key exchange method as aQString.

QString QSslCipher::name() const

Returns the name of the cipher, or an emptyQString if this is a null cipher.

See alsoisNull().

QSsl::SslProtocol QSslCipher::protocol() const

Returns the cipher's protocol type, orQSsl::UnknownProtocol ifQSslCipher is unable to determine the protocol (protocolString() may contain more information).

See alsoprotocolString().

QString QSslCipher::protocolString() const

Returns the cipher's protocol as aQString.

See alsoprotocol().

int QSslCipher::supportedBits() const

Returns the number of bits supported by the cipher.

See alsousedBits().

int QSslCipher::usedBits() const

Returns the number of bits used by the cipher.

See alsosupportedBits().

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

Returns true if this cipher is not the same asother; otherwise, false is returned.

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

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

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

Returns true if this cipher is the same asother; otherwise, false is returned.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp