Qt 4.8
|
The QSslCipher class represents an SSL cryptographic cipher. More...
#include <qsslcipher.h>
Public Functions | |
QString | authenticationMethod () const |
Returns the cipher's authentication method as a QString. More... | |
QString | encryptionMethod () const |
Returns the cipher's encryption method as a QString. More... | |
bool | isNull () const |
Returns true if this is a null cipher; otherwise returns false. More... | |
QString | keyExchangeMethod () const |
Returns the cipher's key exchange method as a QString. More... | |
QString | name () const |
Returns the name of the cipher, or an empty QString if this is a null cipher. More... | |
bool | operator!= (const QSslCipher &other) const |
Returns true if this cipher is not the same as other; otherwise, false is returned. More... | |
QSslCipher & | operator= (const QSslCipher &other) |
Copies the contents of other into this cipher, making the two ciphers identical. More... | |
bool | operator== (const QSslCipher &other) const |
Returns true if this cipher is the same as other; otherwise, false is returned. More... | |
QSsl::SslProtocol | protocol () const |
Returns the cipher's protocol type, or QSsl::UnknownProtocol if QSslCipher is unable to determine the protocol (protocolString() may contain more information). More... | |
QString | protocolString () const |
Returns the cipher's protocol as a QString. More... | |
QSslCipher () | |
Constructs an empty QSslCipher object. More... | |
QSslCipher (const QString &name, QSsl::SslProtocol protocol) | |
Constructs a QSslCipher object for the cipher determined by name and protocol. More... | |
QSslCipher (const QSslCipher &other) | |
Constructs an identical copy of the other cipher. More... | |
int | supportedBits () const |
Returns the number of bits supported by the cipher. More... | |
int | usedBits () const |
Returns the number of bits used by the cipher. More... | |
~QSslCipher () | |
Destroys the QSslCipher object. More... | |
Properties | |
QScopedPointer< QSslCipherPrivate > | d |
Friends | |
class | QSslSocketBackendPrivate |
The QSslCipher class represents an SSL cryptographic cipher.
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.
Definition at line 59 of file qsslcipher.h.
QSslCipher::QSslCipher | ( | ) |
Constructs an empty QSslCipher object.
Definition at line 77 of file qsslcipher.cpp.
QSslCipher::QSslCipher | ( | const QString & | name, |
QSsl::SslProtocol | protocol | ||
) |
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()).
You can call isNull() after construction to check if name and protocol correctly identified a supported cipher.
Definition at line 92 of file qsslcipher.cpp.
QSslCipher::QSslCipher | ( | const QSslCipher & | other | ) |
Constructs an identical copy of the other cipher.
Definition at line 106 of file qsslcipher.cpp.
QSslCipher::~QSslCipher | ( | ) |
QString QSslCipher::authenticationMethod | ( | ) | const |
Returns the cipher's authentication method as a QString.
Definition at line 198 of file qsslcipher.cpp.
QString QSslCipher::encryptionMethod | ( | ) | const |
bool QSslCipher::isNull | ( | ) | const |
Returns true if this is a null cipher; otherwise returns false.
Definition at line 151 of file qsslcipher.cpp.
Referenced by QSslSocketPrivate::resetDefaultCiphers(), and QSslSocket::setCiphers().
QString QSslCipher::keyExchangeMethod | ( | ) | const |
Returns the cipher's key exchange method as a QString.
Definition at line 190 of file qsslcipher.cpp.
QString QSslCipher::name | ( | ) | const |
Returns the name of the cipher, or an empty QString if this is a null cipher.
Definition at line 162 of file qsslcipher.cpp.
Referenced by QSslSocketBackendPrivate::initSslContext(), operator<<(), QSslCipher(), and QSslSocketPrivate::resetDefaultCiphers().
|
inline |
Returns true if this cipher is not the same as other; otherwise, false is returned.
Definition at line 68 of file qsslcipher.h.
QSslCipher & QSslCipher::operator= | ( | const QSslCipher & | other | ) |
Copies the contents of other into this cipher, making the two ciphers identical.
Definition at line 123 of file qsslcipher.cpp.
bool QSslCipher::operator== | ( | const QSslCipher & | other | ) | const |
Returns true if this cipher is the same as other; otherwise, false is returned.
Definition at line 133 of file qsslcipher.cpp.
QSsl::SslProtocol QSslCipher::protocol | ( | ) | const |
Returns the cipher's protocol type, or QSsl::UnknownProtocol if QSslCipher is unable to determine the protocol (protocolString() may contain more information).
Definition at line 228 of file qsslcipher.cpp.
Referenced by QSslCipher().
QString QSslCipher::protocolString | ( | ) | const |
Returns the cipher's protocol as a QString.
Definition at line 216 of file qsslcipher.cpp.
Referenced by operator<<().
int QSslCipher::supportedBits | ( | ) | const |
Returns the number of bits supported by the cipher.
Definition at line 172 of file qsslcipher.cpp.
int QSslCipher::usedBits | ( | ) | const |
Returns the number of bits used by the cipher.
Definition at line 182 of file qsslcipher.cpp.
Referenced by operator<<().
|
friend |
Definition at line 83 of file qsslcipher.h.
|
private |
Definition at line 82 of file qsslcipher.h.
Referenced by authenticationMethod(), encryptionMethod(), isNull(), keyExchangeMethod(), name(), operator=(), operator==(), protocol(), protocolString(), QSslCipher(), QSslSocketBackendPrivate::QSslCipher_from_SSL_CIPHER(), supportedBits(), and usedBits().