Class: QgsPkiConfigBundle¶
- class qgis.core.QgsPkiConfigBundle¶
Bases:
sip.wrapper
Storage set for constructed SSL certificate, key, associated with an authentication config
QgsPkiConfigBundle(config:
QgsAuthMethodConfig
, cert: QSslCertificate, certkey: QSslKey, cachain: Iterable[QSslCertificate] = []) Construct a bundle from existing PKI components and authentication method configuration- Parameters:
config – Authentication method configuration
cert – Certificate to store in bundle
certkey – Private key to store in bundle
cachain – list of CA certificates
QgsPkiConfigBundle(
QgsPkiConfigBundle
)Methods
caChain return the CA chain
Client certificate object
Private key object
Authentication method configuration
Whether the bundle is valid
setCaChain set the CA chain
Sets client certificate object
Sets private key object
Sets authentication method configuration
- caChain(self) List[QSslCertificate] ¶
caChain return the CA chain
- Return type:
List[QSslCertificate]
- Returns:
list of CA certificates
- clientCert(self) QSslCertificate ¶
Client certificate object
- Return type:
QSslCertificate
- clientCertKey(self) QSslKey ¶
Private key object
- Return type:
QSslKey
- config(self) QgsAuthMethodConfig ¶
Authentication method configuration
- Return type:
- isValid(self) bool ¶
Whether the bundle is valid
- Return type:
bool
- setCaChain(self, caChain: Iterable[QSslCertificate])¶
setCaChain set the CA chain
- Parameters:
caChain (Iterable[QSslCertificate]) –
- setClientCert(self, cert: QSslCertificate)¶
Sets client certificate object
- Parameters:
cert (QSslCertificate) –
- setClientCertKey(self, certkey: QSslKey)¶
Sets private key object
- Parameters:
certkey (QSslKey) –
- setConfig(self, config: QgsAuthMethodConfig)¶
Sets authentication method configuration
- Parameters:
config (QgsAuthMethodConfig) –