Class: QgsAuthConfigSslServer

class qgis.core.QgsAuthConfigSslServer

Bases: sip.wrapper

Configuration container for SSL server connection exceptions or overrides

QgsAuthConfigSslServer() Construct a default SSL server configuration

QgsAuthConfigSslServer(QgsAuthConfigSslServer)

Methods

configString

Configuration as a concatenated string

isNull

Whether configuration is null (missing components)

loadConfigString

Load concatenated string into configuration, e.g. from auth database.

qtVersion

Qt version when the configuration was made (SSL protocols may differ)

setQtVersion

Sets Qt version when the configuration was made (SSL protocols may differ)

setSslCertificate

Sets server certificate object

setSslHostPort

Sets server host:port string

setSslIgnoredErrorEnums

Sets SSL server errors (as enum list) to ignore in connections

setSslPeerVerifyDepth

Set number or SSL client's peer to verify in connections

setSslPeerVerifyMode

Sets SSL client's peer verify mode to use in connections

setSslProtocol

Sets SSL server protocol to use in connections

setVersion

Sets version of the configuration (used for future upgrading)

sslCertificate

Server certificate object

sslHostPort

Server host:port string

sslIgnoredErrorEnums

SSL server errors (as enum list) to ignore in connections

sslIgnoredErrors

SSL server errors to ignore in connections

sslPeerVerifyDepth

Number or SSL client's peer to verify in connections

sslPeerVerifyMode

SSL client's peer verify mode to use in connections

sslProtocol

SSL server protocol to use in connections

version

Version of the configuration (used for future upgrading)

configString(self) str

Configuration as a concatenated string

Return type:

str

isNull(self) bool

Whether configuration is null (missing components)

Return type:

bool

loadConfigString(self, config: str = '')

Load concatenated string into configuration, e.g. from auth database

Parameters:

config (str = '') –

qtVersion(self) int

Qt version when the configuration was made (SSL protocols may differ)

Return type:

int

setQtVersion(self, version: int)

Sets Qt version when the configuration was made (SSL protocols may differ)

Parameters:

version (int) –

setSslCertificate(self, cert: QSslCertificate)

Sets server certificate object

Parameters:

cert (QSslCertificate) –

setSslHostPort(self, hostport: str)

Sets server host:port string

Parameters:

hostport (str) –

setSslIgnoredErrorEnums(self, errors: object)

Sets SSL server errors (as enum list) to ignore in connections

Parameters:

errors (object) –

setSslPeerVerifyDepth(self, depth: int)

Set number or SSL client’s peer to verify in connections

Note

When set to 0 = unlimited depth

Parameters:

depth (int) –

setSslPeerVerifyMode(self, mode: QSslSocket.PeerVerifyMode)

Sets SSL client’s peer verify mode to use in connections

Parameters:

mode (QSslSocket.PeerVerifyMode) –

setSslProtocol(self, protocol: QSsl.SslProtocol)

Sets SSL server protocol to use in connections

Parameters:

protocol (QSsl.SslProtocol) –

setVersion(self, version: int)

Sets version of the configuration (used for future upgrading)

Parameters:

version (int) –

sslCertificate(self) QSslCertificate

Server certificate object

Return type:

QSslCertificate

sslHostPort(self) str

Server host:port string

Return type:

str

sslIgnoredErrorEnums(self) object

SSL server errors (as enum list) to ignore in connections

Return type:

object

sslIgnoredErrors(self) List[QSslError]

SSL server errors to ignore in connections

Return type:

List[QSslError]

sslPeerVerifyDepth(self) int

Number or SSL client’s peer to verify in connections

Note

When set to 0 = unlimited depth

Return type:

int

sslPeerVerifyMode(self) QSslSocket.PeerVerifyMode

SSL client’s peer verify mode to use in connections

Return type:

QSslSocket.PeerVerifyMode

sslProtocol(self) QSsl.SslProtocol

SSL server protocol to use in connections

Return type:

QSsl.SslProtocol

version(self) int

Version of the configuration (used for future upgrading)

Return type:

int