Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QSslCipher Class Reference
[QtNetwork module]

The QSslCipher class represents an SSL cryptographic cipher. More...

 #include <QSslCipher>

Note: All the functions in this class are reentrant.

This class was introduced in Qt 4.3.

Public Functions


Detailed Description

The QSslCipher class represents an SSL cryptographic cipher.

QSslCipher stores information about one cryptographic cipher. It is most commonly used with QSslSocket, either for configuring which ciphers the socket can use, or for displaying the socket's ciphers to the user.

See also QSslSocket and QSslKey.


Member Function Documentation

QSslCipher::QSslCipher ()

Constructs an empty QSslCipher object.

QSslCipher::QSslCipher ( const QString & name, QSsl::SslProtocol protocol )

Constructs a QSslCipher object for the cipher determined by name and protocol. The constructor accepts only supported ciphers (i.e., the name and protocol must identify a cipher in the list of ciphers returned by QSslSocket::supportedCiphers()).

You can call isNull() after construction to check if name and protocol correctly identified a supported cipher.

QSslCipher::QSslCipher ( const QSslCipher & other )

Constructs an identical copy of the other cipher.

QSslCipher::~QSslCipher ()

Destroys the QSslCipher object.

QString QSslCipher::authenticationMethod () const

Returns the cipher's authentication method as a QString.

QString QSslCipher::encryptionMethod () const

Returns the cipher's encryption method as a QString.

bool QSslCipher::isNull () const

Returns true if this is a null cipher; otherwise returns false.

QString QSslCipher::keyExchangeMethod () const

Returns the cipher's key exchange method as a QString.

QString QSslCipher::name () const

Returns the name of the cipher, or an empty QString if this is a null cipher.

See also isNull().

QSsl::SslProtocol QSslCipher::protocol () const

Returns the cipher's protocol type, or QSsl::UnknownProtocol if QSslCipher is unable to determine the protocol (protocolString() may contain more information).

See also protocolString().

QString QSslCipher::protocolString () const

Returns the cipher's protocol as a QString.

See also protocol().

int QSslCipher::supportedBits () const

Returns the number of bits supported by the cipher.

See also usedBits().

int QSslCipher::usedBits () const

Returns the number of bits used by the cipher.

See also supportedBits().

bool QSslCipher::operator!= ( const QSslCipher & other ) const

Returns true if this cipher is not the same as other; otherwise, false is returned.

QSslCipher & QSslCipher::operator= ( const QSslCipher & other )

Copies the contents of other into this cipher, making the two ciphers identical.

bool QSslCipher::operator== ( const QSslCipher & other ) const

Returns true if this cipher is the same as other; otherwise, false is returned.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 42
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
  7. 2017 : un quinquennat pour une nouvelle version du C++ ? Possible, selon Herb Sutter 9
Page suivante

Le Qt Labs au hasard

Logo

Velours et QML Scene Graph

Les Qt Labs sont les laboratoires des développeurs de Qt, où ils peuvent partager des impressions sur le framework, son utilisation, ce que pourrait être son futur. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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.5
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 !
 
 
 
 
Partenaires

Hébergement Web