sslConfiguration QML Type
La classe sslConfiguration contiene la configurazione e lo stato di una connessione SSL. Per saperne di più...
| Import Statement: | import QtNetwork |
| Since: | Qt 6.7 |
Proprietà
- ciphers : string
- peerVerifyDepth : int
- peerVerifyMode : enumeration
- protocol : enumeration
- sessionTicket : bytearray
- sslOptionFlags : QSsl::SslOptions
(since 6.11)
Metodi
- void setCertificateFiles(const QStringList &certificateFiles)
- void setPrivateKey(const QQmlSslKey &privateKey)
Descrizione dettagliata
sslConfiguration viene utilizzato per trasmettere informazioni relative a una connessione SSL aperta e per consentire all'applicazione di controllare determinate funzionalità di tale connessione. sslConfiguration incapsula al suo interno un oggetto QSslConfiguration. I valori predefiniti di sslConfiguration vengono inizializzati chiamando QSslConfiguration::defaultConfiguration.
Vedi anche QSslConfiguration.
Documentazione delle proprietà
ciphers : string
Imposta la suite di cifratura per questa configurazione su ciphers, ovvero un elenco di nomi di suite di cifratura separati da due punti.
Vedi anche QSslConfiguration::ciphers.
peerVerifyDepth : int
Indica il numero massimo di certificati nella catena di certificati del peer da verificare durante la fase di handshake SSL, oppure 0 (valore predefinito) se non è stata impostata alcuna profondità massima, il che indica che deve essere verificata l'intera catena di certificati.
Vedi anche QSslConfiguration::peerVerifyDepth.
peerVerifyMode : enumeration
Contiene il valore di enumerazione PeerVerifyMode.
Vedi anche QSslSocket::PeerVerifyMode.
protocol : enumeration
Contiene un valore dell'enumerazione SslProtocol.
Vedi anche QSsl::SslProtocol.
sessionTicket : bytearray
Contiene il ticket di sessione utilizzato nell'handshake SSL in formato ASN.1, adatto, ad esempio, per essere salvato su disco.
Vedi anche QSslConfiguration::sessionTicket.
sslOptionFlags : QSsl::SslOptions [since 6.11]
Contiene l'OR bit a bit dei valori SslOption abilitati nella configurazione.
Il valore predefinito è lo stesso impostato da ` QSslConfiguration::defaultConfiguration()`.
Questa proprietà è stata introdotta in Qt 6.11.
Vedi anche QSsl::SslOptions.
Documentazione sui metodi
void setCertificateFiles(const QStringList &certificateFiles)
Questa funzione carica nella configurazione l'elenco dei certificati certificateFiles fornito dall'utente.
void setPrivateKey(const QQmlSslKey &privateKey)
Questa funzione imposta nella configurazione il valore della chiave privata definita dall'utente privateKey.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.