Qt 4.8
Classes | Functions
qsslkey.h File Reference
#include <QtCore/qnamespace.h>
#include <QtCore/qbytearray.h>
#include <QtCore/qsharedpointer.h>
#include <QtNetwork/qssl.h>

Go to the source code of this file.

Classes

struct  QPair< T1, T2 >
 
class  QSslKey
 The QSslKey class provides an interface for private and public keys. More...
 

Functions

Q_NETWORK_EXPORT QDebug operator<< (QDebug debug, const QSslKey &key)
 

Function Documentation

◆ operator<<()

Q_NETWORK_EXPORT QDebug operator<< ( QDebug  debug,
const QSslKey key 
)

Definition at line 464 of file qsslkey.cpp.

465 {
466  debug << "QSslKey("
467  << (key.type() == QSsl::PublicKey ? "PublicKey" : "PrivateKey")
468  << ", " << (key.algorithm() == QSsl::Rsa ? "RSA" : "DSA")
469  << ", " << key.length()
470  << ')';
471  return debug;
472 }
QSsl::KeyAlgorithm algorithm() const
Returns the key algorithm.
Definition: qsslkey.cpp:347
Definition: qssl.h:67
int length() const
Returns the length of the key in bits, or -1 if the key is null.
Definition: qsslkey.cpp:328
QSsl::KeyType type() const
Returns the type of the key (i.e., PublicKey or PrivateKey).
Definition: qsslkey.cpp:339