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

QCoapSecurityConfiguration Class

The QCoapSecurityConfiguration class holds configuration options during the authentication process.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QCoapSecurityConfiguration Class▲

  • Header: QCoapSecurityConfiguration

  • qmake: QT += coap

Detailed Description▲

It holds information such as client identity, pre shared key, information about certificates, and so on.

Member Function Documentation▲

 

QCoapSecurityConfiguration::QCoapSecurityConfiguration()▲

Constructs a new QCoapSecurityConfiguration.

QCoapSecurityConfiguration::QCoapSecurityConfiguration(const QCoapSecurityConfiguration &other)▲

Copies the configuration and state of other.

QCoapSecurityConfiguration::QCoapSecurityConfiguration(QCoapSecurityConfiguration &&other)▲

Move-constructs a QCoapSecurityConfiguration, making it point to the same object as other was pointing to.

QCoapSecurityConfiguration::~QCoapSecurityConfiguration()▲

Releases any resources held by QCoapSecurityConfiguration.

QList<QSslCertificate> QCoapSecurityConfiguration::caCertificates() const▲

Returns this connection's certificate authority certificate database.

See Also▲

See also setCaCertificates()

QString QCoapSecurityConfiguration::defaultCipherString() const▲

Returns the default cipher string.

See Also▲

QList<QSslCertificate> QCoapSecurityConfiguration::localCertificateChain() const▲

Returns the certificate chain to be presented to the peer during the handshake.

See Also▲

QByteArray QCoapSecurityConfiguration::preSharedKey() const▲

Returns the pre shared key.

See Also▲

See also setPreSharedKey()

QByteArray QCoapSecurityConfiguration::preSharedKeyIdentity() const▲

Returns the PSK client identity.

See Also▲

QCoapPrivateKey QCoapSecurityConfiguration::privateKey() const▲

Returns the private key assigned to the connection.

See Also▲

void QCoapSecurityConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates)▲

Sets certificates as the certificate authority database for the connection.

See Also▲

See also caCertificates()

void QCoapSecurityConfiguration::setDefaultCipherString(const QString &cipherString)▲

Sets the SSL cipher string to cipherString.

The security back-end (for example OpenSSL) might not include ciphers required for RFC 7252 by default. This method specifies which ciphers the back-end should use. For example to enable CCM ciphers required by RFC, "AESCCM" can be passed as cipherString.

See the OpenSSL docs for more information about cipher strings.

See Also▲

See also defaultCipherString()

void QCoapSecurityConfiguration::setLocalCertificateChain(const QList<QSslCertificate> &localChain)▲

Sets localChain as the certificate chain to present to the peer during the handshake.

See Also▲

void QCoapSecurityConfiguration::setPreSharedKey(const QByteArray &preSharedKey)▲

Sets the pre shared key to preSharedKey.

See Also▲

See also preSharedKey()

void QCoapSecurityConfiguration::setPreSharedKeyIdentity(const QByteArray &identity)▲

Sets the PSK client identity (to be advised to the server) to identity.

See Also▲

void QCoapSecurityConfiguration::setPrivateKey(const QCoapPrivateKey &key)▲

Sets the connection's private key to key.

See Also▲

void QCoapSecurityConfiguration::swap(QCoapSecurityConfiguration &other)▲

Swaps this security configuration with other. This operation is very fast and never fails.

QCoapSecurityConfiguration &QCoapSecurityConfiguration::operator=(const QCoapSecurityConfiguration &other)▲

Copies the configuration and state of other.

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