![]() |
Home · All Classes · Main Classes · Grouped Classes · Modules · Functions | ![]() |
The QSslKey class provides an interface for private and public keys. More...
#include <QSslKey>
Note: All the functions in this class are reentrant.
This class was introduced in Qt 4.3.
The QSslKey class provides an interface for private and public keys.
QSslKey provides a simple API for managing keys.
See also QSslSocket, QSslCertificate, and QSslCipher.
Describes the algorithm for the key.
Constant | Value | Description |
---|---|---|
QSslKey::Rsa | 0 | The RSA algorithm. |
QSslKey::Dsa | 1 | The DSA algorithm. |
Describes the two types of keys QSslKey supports.
Constant | Value | Description |
---|---|---|
QSslKey::PrivateKey | 0 | A private key. |
QSslKey::PublicKey | 1 | A public key. |
Constructs a QSslKey by parsing encoded. You can call isNull() later to check if encoded contained a valid key or not.
Constructs an identical copy of other.
Destroys the QSslKey object.
Returns the key algorithm.
Clears the contents of this key, making it a null key.
See also isNull().
Returns a pointer to key bits.
See also keyLength().
Generates and returns a new pair of keys (the first is a PrivateKey, and the second is the PublicKey). algorithm specifies what algorithm to use when generting the keys, and keyLength specifies the number of bits.
This function can be time consuming, and will block the calling thread.
Returns true if this is a null key; otherwise, false is returned.
See also clear().
Returns the length of the key in bits.
Returns the key in DER encoding, optionally encrypted and protected by passPhrase.
Returns the key in PEM encoding, optionally encrypted and protected by passPhrase.
Returns the type of the key (i.e., PublicKey or PrivateKey).
Copies the contents of other into this key, making the two keys identical.
Returns a reference to this QSslKey.
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.0beta |