27 QSslKey(
const QByteArray &encoded, QSsl::KeyAlgorithm algorithm,
28 QSsl::EncodingFormat format = QSsl::Pem,
29 QSsl::KeyType type = QSsl::PrivateKey,
30 const QByteArray &passPhrase = QByteArray());
31 QSslKey(QIODevice *device, QSsl::KeyAlgorithm algorithm,
32 QSsl::EncodingFormat format = QSsl::Pem,
33 QSsl::KeyType type = QSsl::PrivateKey,
34 const QByteArray &passPhrase = QByteArray());
35 explicit QSslKey(Qt::HANDLE handle, QSsl::KeyType type = QSsl::PrivateKey);
36 QSslKey(
const QSslKey &other);
37 QSslKey(QSslKey &&other)
noexcept;
38 QSslKey &operator=(QSslKey &&other)
noexcept;
39 QSslKey &operator=(
const QSslKey &other);
42 void swap(QSslKey &other)
noexcept { d.swap(other.d); }
48 QSsl::KeyType type()
const;
49 QSsl::KeyAlgorithm algorithm()
const;
51 QByteArray toPem(
const QByteArray &passPhrase = QByteArray())
const;
53 QByteArray toDer(
const QByteArray &passPhrase = QByteArray())
const;
55 Qt::HANDLE handle()
const;
57 bool operator==(
const QSslKey &key)
const;
58 inline bool operator!=(
const QSslKey &key)
const {
return !operator==(key); }
61 QExplicitlySharedDataPointer<QSslKeyPrivate> d;
62 friend class QTlsBackend;