Class: QgsAuthSslConfigWidget¶
Widget for editing an SSL server configuration.
Class Hierarchy¶
Base classes¶
Methods
Add to SSL errors to ignore for the connection |
|
Access to the certificate's group box widget |
|
Enable or disable the custom options widget |
|
Load an existing SSL server configuration |
|
Verify if the configuration if ready to save |
|
Clear the current SSL server configuration and disabled it |
|
Clear the SSL errors to ignore for the connection |
|
Reset the client's peer verify mode for connections to default |
|
Reset the SSL protocol to use in connections to the default |
|
Save the current SSL server configuration to the authentication database |
|
Sets whether the config group box is checkable |
|
Sets SSl certificate and any associated host:port |
|
Sets the host of the server |
|
Sets the SSL errors (as enums) to ignore for the connection |
|
Sets the SSL errors to ignore for the connection |
|
Sets the client's peer verify mode for connections |
|
Sets the SSL protocol to use in connections |
|
Gets the SSL server certificate |
|
Access to the SSL configuration's group box widget |
|
Gets the SSL configuration |
|
Gets the host:port to associate with the server certificate |
|
Gets list of the SSL errors (as enums) to be ignored for connections |
|
Gets the client's peer verify depth for connections |
|
Gets the client's peer verify mode for connections |
|
Gets the SSL protocol used for connections |
|
Parse string for host:port |
Signals
Emitted when an certificate of same SHA hash is found in authentication database |
|
Emitted when the enabled state of the configuration changes |
|
Emitted when the validity of the host:port changes |
|
Emitted when the configuration can be saved changes |
- class qgis.gui.QgsAuthSslConfigWidget[source]¶
Bases:
QWidget
- __init__(parent: QWidget | None = None, cert: QSslCertificate = QSslCertificate(), hostport: str | None = '', connectionCAs: Iterable[QSslCertificate] = [])
Construct a widget for editing an SSL server certificate configuration
- Parameters:
parent (Optional[QWidget] = None) – Parent widget
cert (QSslCertificate = QSslCertificate()) – SSL server certificate object
hostport (Optional[str] = '') – Unique host:port to associate with the server certificate
connectionCAs (Iterable[QSslCertificate] = []) – List of trusted Certificate Authorities objects
- appendSslIgnoreErrors(self, errors: Iterable[QSslError])[source]¶
Add to SSL errors to ignore for the connection
- Parameters:
errors (Iterable[QSslError])
- signal certFoundInAuthDatabase(found: bool)[source]¶
Emitted when an certificate of same SHA hash is found in authentication database
- Parameters:
found (bool)
- certificateGroupBox(self) QGroupBox | None [source]¶
Access to the certificate’s group box widget
- Return type:
Optional[QGroupBox]
- signal configEnabledChanged(enabled: bool)[source]¶
Emitted when the enabled state of the configuration changes
- Parameters:
enabled (bool)
- enableSslCustomOptions(self, enable: bool)[source]¶
Enable or disable the custom options widget
- Parameters:
enable (bool)
- signal hostPortValidityChanged(valid: bool)[source]¶
Emitted when the validity of the host:port changes
- Parameters:
valid (bool)
- loadSslCustomConfig(self, config: QgsAuthConfigSslServer = QgsAuthConfigSslServer())[source]¶
Load an existing SSL server configuration
- Parameters:
config (
QgsAuthConfigSslServer
= QgsAuthConfigSslServer())
- signal readyToSaveChanged(cansave: bool)[source]¶
Emitted when the configuration can be saved changes
- Parameters:
cansave (bool)
- saveSslCertConfig(self)[source]¶
Save the current SSL server configuration to the authentication database
- setConfigCheckable(self, checkable: bool)[source]¶
Sets whether the config group box is checkable
- Parameters:
checkable (bool)
- setSslCertificate(self, cert: QSslCertificate, hostport: str | None = '')[source]¶
Sets SSl certificate and any associated host:port
- Parameters:
cert (QSslCertificate)
hostport (Optional[str] = '')
- setSslHost(self, host: str | None)[source]¶
Sets the host of the server
- Parameters:
host (Optional[str])
- setSslIgnoreErrorEnums(self, errorenums: Any)[source]¶
Sets the SSL errors (as enums) to ignore for the connection
- Parameters:
errorenums (Any)
- setSslIgnoreErrors(self, errors: Iterable[QSslError])[source]¶
Sets the SSL errors to ignore for the connection
- Parameters:
errors (Iterable[QSslError])
- setSslPeerVerify(self, mode: QSslSocket.PeerVerifyMode, modedepth: int)[source]¶
Sets the client’s peer verify mode for connections
- Parameters:
mode (QSslSocket.PeerVerifyMode)
modedepth (int)
- setSslProtocol(self, protocol: QSsl.SslProtocol)[source]¶
Sets the SSL protocol to use in connections
- Parameters:
protocol (QSsl.SslProtocol)
- sslCertificate(self) QSslCertificate [source]¶
Gets the SSL server certificate
- Return type:
QSslCertificate
- sslConfigGroupBox(self) QGroupBox | None [source]¶
Access to the SSL configuration’s group box widget
- Return type:
Optional[QGroupBox]
- sslCustomConfig(self) QgsAuthConfigSslServer [source]¶
Gets the SSL configuration
- Return type:
- sslHost(self) str [source]¶
Gets the host:port to associate with the server certificate
- Return type:
str
- sslIgnoreErrorEnums(self) Any ¶
Gets list of the SSL errors (as enums) to be ignored for connections
- Return type:
Any
- sslPeerVerifyDepth(self) int [source]¶
Gets the client’s peer verify depth for connections
Note
Value of 0 = unlimited
- Return type:
int
- sslPeerVerifyMode(self) QSslSocket.PeerVerifyMode [source]¶
Gets the client’s peer verify mode for connections
- Return type:
QSslSocket.PeerVerifyMode