IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QSslDiffieHellmanParameters Class

The QSslDiffieHellmanParameters class provides an interface for Diffie-Hellman parameters for servers.

This class was introduced in Qt 5.8.

All functions in this class are reentrant.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QSslDiffieHellmanParameters Class

  • Header: QSslDiffieHellmanParameters

  • Since: Qt 5.8

  • qmake: QT += network

  • Group: QSslDiffieHellmanParameters is part of Network Programming API, ssl, shared

Detailed Description

QSslDiffieHellmanParameters provides an interface for setting Diffie-Hellman parameters to servers based on QSslSocket.

See Also

See also QSslSocket, QSslCipher, QSslConfiguration

Member Type Documentation

 

enum QSslDiffieHellmanParameters::Error

Describes a QSslDiffieHellmanParameters error.

Constant

Value

Description

QSslDiffieHellmanParameters::NoError

0

No error occurred.

QSslDiffieHellmanParameters::InvalidInputDataError

1

The given input data could not be used to construct a QSslDiffieHellmanParameters object.

QSslDiffieHellmanParameters::UnsafeParametersError

2

The Diffie-Hellman parameters are unsafe and should not be used.

Member Function Documentation

 

[default] QSslDiffieHellmanParameters::QSslDiffieHellmanParameters(QSslDiffieHellmanParameters &&other)

Move-constructs from other.

The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

Q_DECL_IMPORT QSslDiffieHellmanParameters::isEmpty() const

Returns true if this is a an empty QSslDiffieHellmanParameters instance.

Setting an empty QSslDiffieHellmanParameters instance on a QSslSocket-based server will disable Diffie-Hellman key exchange.

Q_DECL_IMPORT QSslDiffieHellmanParameters::isValid() const

Returns true if this is a valid QSslDiffieHellmanParameters; otherwise false.

This method should be used after constructing a QSslDiffieHellmanParameters object to determine its validity.

If a QSslDiffieHellmanParameters object is not valid, you can use the error() method to determine what error prevented the object from being constructed.

See Also

See also error()

[default] QSslDiffieHellmanParameters &QSslDiffieHellmanParameters::operator=(QSslDiffieHellmanParameters &&other)

Move-assigns other to this QSslDiffieHellmanParameters instance.

The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

Related Non-Members

 

[since 5.8] Q_DECL_IMPORT operator==(const QSslDiffieHellmanParameters &lhs, const QSslDiffieHellmanParameters &rhs)

Returns true if lhs is equal to rhs; otherwise returns false.

This function was introduced in Qt 5.8.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+