sslConfiguration QML Type

The sslConfiguration class holds the configuration and state of an SSL connection. 更多...

import 语句: import QtNetwork
Since: Qt 6.7

特性

方法

详细描述

sslConfiguration is used to relay information about an open SSL connection and to allow the application to control certain features of that connection. The sslConfiguration encapsulates QSslConfiguration object inside. The sslConfiguration calls defaultSslCongiguration in ctor.

另请参阅 QSslConfiguration .

特性文档编制

ciphers : string

Holds the cryptographic cipher suite for this configuration to ciphers , which is a colon-separated list of cipher suite names.

另请参阅 QSslConfiguration::ciphers .

peerVerifyDepth : int

Holds the maximum number of certificates in the peer's certificate chain to be checked during the SSL handshake phase, or 0 (the default) if no maximum depth has been set, indicating that the whole certificate chain should be checked.

另请参阅 QSslConfiguration::peerVerifyDepth .

peerVerifyMode : enumeration

Holds PeerVerifyMode enumeration value.

另请参阅 QSslSocket::PeerVerifyMode .

protocol : enumeration

Holds SslProtocol enumeration value.

另请参阅 QSsl::SslProtocol .

sessionTicket : bytearray

Holds the session ticket used in the SSL handshake in ASN.1 format, suitable to e.g. be persisted to disk.

另请参阅 QSslConfiguration::sessionTicket .

sslOptions : QList

Holds the list of SslOption values, that are activated by configuration.

另请参阅 QSsl::SslOption .

方法文档编制

void setCertificateFiles (const QStringList & certificateFiles )

This function loads into configuration the list of certificates certificateFiles provided by user.

void setPrivateKey (const QQmlSslKey & privateKey )

This function sets into configuration user defined Private key value privateKey .

另请参阅 QSslKey and sslKey .