QSslKey Class Reference |
QSslKey () | |
QSslKey ( const QByteArray & encoded, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat encoding = QSsl::Pem, QSsl::KeyType type = QSsl::PrivateKey, const QByteArray & passPhrase = QByteArray() ) | |
QSslKey ( QIODevice * device, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat encoding = QSsl::Pem, QSsl::KeyType type = QSsl::PrivateKey, const QByteArray & passPhrase = QByteArray() ) | |
QSslKey ( const QSslKey & other ) | |
~QSslKey () | |
QSsl::KeyAlgorithm | algorithm () const |
void | clear () |
Qt::HANDLE | handle () const |
bool | isNull () const |
int | length () const |
QByteArray | toDer ( const QByteArray & passPhrase = QByteArray() ) const |
QByteArray | toPem ( const QByteArray & passPhrase = QByteArray() ) const |
QSsl::KeyType | type () const |
bool | operator!= ( const QSslKey & other ) const |
QSslKey & | operator= ( const QSslKey & other ) |
bool | operator== ( const QSslKey & other ) const |
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.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.6-snapshot | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com