QGIS API Documentation 3.39.0-Master (8f4da32b6b8)
|
Widget for editing an SSL server configuration. More...
#include <qgsauthsslconfigwidget.h>
Public Slots | |
void | appendSslIgnoreErrors (const QList< QSslError > &errors) |
Add to SSL errors to ignore for the connection. | |
void | enableSslCustomOptions (bool enable) |
Enable or disable the custom options widget. | |
void | loadSslCustomConfig (const QgsAuthConfigSslServer &config=QgsAuthConfigSslServer()) |
Load an existing SSL server configuration. | |
bool | readyToSave () |
Verify if the configuration if ready to save. | |
void | resetSslCertConfig () |
Clear the current SSL server configuration and disabled it. | |
void | resetSslIgnoreErrors () |
Clear the SSL errors to ignore for the connection. | |
void | resetSslPeerVerify () |
Reset the client's peer verify mode for connections to default. | |
void | resetSslProtocol () |
Reset the SSL protocol to use in connections to the default. | |
void | saveSslCertConfig () |
Save the current SSL server configuration to the authentication database. | |
void | setConfigCheckable (bool checkable) |
Sets whether the config group box is checkable. | |
void | setSslCertificate (const QSslCertificate &cert, const QString &hostport=QString()) |
Sets SSl certificate and any associated host:port. | |
void | setSslHost (const QString &host) |
Sets the host of the server. | |
void | setSslIgnoreErrorEnums (const QList< QSslError::SslError > &errorenums) |
Sets the SSL errors (as enums) to ignore for the connection. | |
void | setSslIgnoreErrors (const QList< QSslError > &errors) |
Sets the SSL errors to ignore for the connection. | |
void | setSslPeerVerify (QSslSocket::PeerVerifyMode mode, int modedepth) |
Sets the client's peer verify mode for connections. | |
void | setSslProtocol (QSsl::SslProtocol protocol) |
Sets the SSL protocol to use in connections. | |
void | validateHostPortText (const QString &txt) |
Parse string for host:port. | |
Signals | |
void | certFoundInAuthDatabase (bool found) |
Emitted when an certificate of same SHA hash is found in authentication database. | |
void | configEnabledChanged (bool enabled) |
Emitted when the enabled state of the configuration changes. | |
void | hostPortValidityChanged (bool valid) |
Emitted when the validity of the host:port changes. | |
void | readyToSaveChanged (bool cansave) |
Emitted when the configuration can be saved changes. | |
Public Member Functions | |
QgsAuthSslConfigWidget (QWidget *parent=nullptr, const QSslCertificate &cert=QSslCertificate(), const QString &hostport=QString(), const QList< QSslCertificate > &connectionCAs=QList< QSslCertificate >()) | |
Construct a widget for editing an SSL server certificate configuration. | |
QGroupBox * | certificateGroupBox () |
Access to the certificate's group box widget. | |
const QSslCertificate | sslCertificate () |
Gets the SSL server certificate. | |
QGroupBox * | sslConfigGroupBox () |
Access to the SSL configuration's group box widget. | |
const QgsAuthConfigSslServer | sslCustomConfig () |
Gets the SSL configuration. | |
const QString | sslHost () |
Gets the host:port to associate with the server certificate. | |
const QList< QSslError::SslError > | sslIgnoreErrorEnums () |
Gets list of the SSL errors (as enums) to be ignored for connections. | |
int | sslPeerVerifyDepth () |
Gets the client's peer verify depth for connections. | |
QSslSocket::PeerVerifyMode | sslPeerVerifyMode () |
Gets the client's peer verify mode for connections. | |
QSsl::SslProtocol | sslProtocol () |
Gets the SSL protocol used for connections. | |
Widget for editing an SSL server configuration.
Definition at line 39 of file qgsauthsslconfigwidget.h.
|
explicit |
Construct a widget for editing an SSL server certificate configuration.
parent | Parent widget |
cert | SSL server certificate object |
hostport | Unique host:port to associate with the server certificate |
connectionCAs | List of trusted Certificate Authorities objects |
Definition at line 42 of file qgsauthsslconfigwidget.cpp.
|
slot |
Add to SSL errors to ignore for the connection.
Definition at line 358 of file qgsauthsslconfigwidget.cpp.
|
signal |
Emitted when an certificate of same SHA hash is found in authentication database.
QGroupBox * QgsAuthSslConfigWidget::certificateGroupBox | ( | ) |
Access to the certificate's group box widget.
Definition at line 82 of file qgsauthsslconfigwidget.cpp.
|
signal |
Emitted when the enabled state of the configuration changes.
|
slot |
Enable or disable the custom options widget.
Definition at line 216 of file qgsauthsslconfigwidget.cpp.
|
signal |
Emitted when the validity of the host:port changes.
|
slot |
Load an existing SSL server configuration.
Definition at line 266 of file qgsauthsslconfigwidget.cpp.
|
slot |
Verify if the configuration if ready to save.
Definition at line 498 of file qgsauthsslconfigwidget.cpp.
|
signal |
Emitted when the configuration can be saved changes.
|
slot |
Clear the current SSL server configuration and disabled it.
Definition at line 310 of file qgsauthsslconfigwidget.cpp.
|
slot |
Clear the SSL errors to ignore for the connection.
Definition at line 426 of file qgsauthsslconfigwidget.cpp.
|
slot |
Reset the client's peer verify mode for connections to default.
Definition at line 488 of file qgsauthsslconfigwidget.cpp.
|
slot |
Reset the SSL protocol to use in connections to the default.
Definition at line 349 of file qgsauthsslconfigwidget.cpp.
|
slot |
Save the current SSL server configuration to the authentication database.
Definition at line 298 of file qgsauthsslconfigwidget.cpp.
|
slot |
Sets whether the config group box is checkable.
Definition at line 552 of file qgsauthsslconfigwidget.cpp.
|
slot |
Sets SSl certificate and any associated host:port.
Definition at line 228 of file qgsauthsslconfigwidget.cpp.
|
slot |
Sets the host of the server.
Definition at line 515 of file qgsauthsslconfigwidget.cpp.
|
slot |
Sets the SSL errors (as enums) to ignore for the connection.
Definition at line 383 of file qgsauthsslconfigwidget.cpp.
|
slot |
Sets the SSL errors to ignore for the connection.
Definition at line 398 of file qgsauthsslconfigwidget.cpp.
|
slot |
Sets the client's peer verify mode for connections.
Definition at line 474 of file qgsauthsslconfigwidget.cpp.
|
slot |
Sets the SSL protocol to use in connections.
Definition at line 339 of file qgsauthsslconfigwidget.cpp.
const QSslCertificate QgsAuthSslConfigWidget::sslCertificate | ( | ) |
Gets the SSL server certificate.
Definition at line 198 of file qgsauthsslconfigwidget.cpp.
QGroupBox * QgsAuthSslConfigWidget::sslConfigGroupBox | ( | ) |
Access to the SSL configuration's group box widget.
Definition at line 91 of file qgsauthsslconfigwidget.cpp.
const QgsAuthConfigSslServer QgsAuthSslConfigWidget::sslCustomConfig | ( | ) |
Gets the SSL configuration.
Definition at line 182 of file qgsauthsslconfigwidget.cpp.
const QString QgsAuthSslConfigWidget::sslHost | ( | ) |
Gets the host:port to associate with the server certificate.
Definition at line 207 of file qgsauthsslconfigwidget.cpp.
const QList< QSslError::SslError > QgsAuthSslConfigWidget::sslIgnoreErrorEnums | ( | ) |
Gets list of the SSL errors (as enums) to be ignored for connections.
Definition at line 438 of file qgsauthsslconfigwidget.cpp.
int QgsAuthSslConfigWidget::sslPeerVerifyDepth | ( | ) |
Gets the client's peer verify depth for connections.
Definition at line 465 of file qgsauthsslconfigwidget.cpp.
QSslSocket::PeerVerifyMode QgsAuthSslConfigWidget::sslPeerVerifyMode | ( | ) |
Gets the client's peer verify mode for connections.
Definition at line 456 of file qgsauthsslconfigwidget.cpp.
QSsl::SslProtocol QgsAuthSslConfigWidget::sslProtocol | ( | ) |
Gets the SSL protocol used for connections.
Definition at line 330 of file qgsauthsslconfigwidget.cpp.
|
slot |
Parse string for host:port.
Definition at line 540 of file qgsauthsslconfigwidget.cpp.