Class: QgsPkiConfigBundle

Storage set for constructed SSL certificate, key, associated with an authentication config.

class qgis.core.QgsPkiConfigBundle[source]

Bases: object

__init__(config: QgsAuthMethodConfig, cert: QSslCertificate, certkey: QSslKey, cachain: Iterable[QSslCertificate] = [])

Construct a bundle from existing PKI components and authentication method configuration

Parameters:
  • config (QgsAuthMethodConfig) – Authentication method configuration

  • cert (QSslCertificate) – Certificate to store in bundle

  • certkey (QSslKey) – Private key to store in bundle

  • cachain (Iterable[QSslCertificate] = []) – list of CA certificates

__init__(a0: QgsPkiConfigBundle)
Parameters:

a0 (QgsPkiConfigBundle)

caChain(self) List[QSslCertificate]

caChain return the CA chain

Return type:

List[QSslCertificate]

Returns:

list of CA certificates

clientCert(self) QSslCertificate[source]

Client certificate object

Return type:

QSslCertificate

clientCertKey(self) QSslKey[source]

Private key object

Return type:

QSslKey

config(self) QgsAuthMethodConfig[source]

Authentication method configuration

Return type:

QgsAuthMethodConfig

isValid(self) bool[source]

Whether the bundle is valid

Return type:

bool

setCaChain(self, caChain: Iterable[QSslCertificate])[source]

setCaChain set the CA chain

Parameters:

caChain (Iterable[QSslCertificate])

setClientCert(self, cert: QSslCertificate)[source]

Sets client certificate object

Parameters:

cert (QSslCertificate)

setClientCertKey(self, certkey: QSslKey)[source]

Sets private key object

Parameters:

certkey (QSslKey)

setConfig(self, config: QgsAuthMethodConfig)[source]

Sets authentication method configuration

Parameters:

config (QgsAuthMethodConfig)