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.
Constructs a null key.
See also isNull().
Constructs a QSslKey by decoding the string in the byte array encoded using a specified algorithm and encoding format. If the encoded key is encrypted, passPhrase is used to decrypt it. type specifies whether the key is public or private.
After construction, use isNull() to check if encoded contained a valid key.
Constructs a QSslKey by reading and decoding data from a device using a specified algorithm and encoding format. If the encoded key is encrypted, passPhrase is used to decrypt it. type specifies whether the key is public or private.
After construction, use isNull() to check if device provided a valid key.
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 the native key handle, if it is available; otherwise a null pointer is returned.
You can use this handle together with the native API to access extended information about the key.
Warning: Use of this function has a high probability of being non-portable, and its return value may vary across platforms, and between minor Qt releases.
Returns true if this is a null key; otherwise false.
See also clear().
Returns the length of the key in bits, or -1 if the key is null.
Returns the key in DER encoding. The result is encrypted with passPhrase if the key is a private key and passPhrase is non-empty.
Returns the key in PEM encoding. The result is encrypted with passPhrase if the key is a private key and passPhrase is non-empty.
Returns the type of the key (i.e., PublicKey or PrivateKey).
Returns true if this key is not equal to key other; otherwise returns false.
Copies the contents of other into this key, making the two keys identical.
Returns a reference to this QSslKey.
Returns true if this key is equal to other; otherwise returns false.
Copyright © 2008 Trolltech | Trademarks | Qt 4.3.5 |