QgsPkiConfigBundle class
Storage set for constructed SSL certificate, key, associated with an authentication config.
Contents
Constructors, destructors, conversion operators
- QgsPkiConfigBundle(const QgsAuthMethodConfig& config, const QSslCertificate& cert, const QSslKey& certkey, const QList<QSslCertificate>& cachain = QList<QSslCertificate>())
- Construct a bundle from existing PKI components and authentication method configuration.
Public functions
- auto caChain() const -> QList<QSslCertificate>
- caChain return the CA chain
- auto clientCert() const -> const QSslCertificate
- Client certificate object.
- auto clientCertKey() const -> const QSslKey
- Private key object.
- auto config() const -> const QgsAuthMethodConfig
- Authentication method configuration.
- auto isValid() -> bool
- Whether the bundle is valid.
- void setCaChain(const QList<QSslCertificate>& caChain)
- setCaChain set the CA chain
- void setClientCert(const QSslCertificate& cert)
- Sets client certificate object.
- void setClientCertKey(const QSslKey& certkey)
- Sets private key object.
- void setConfig(const QgsAuthMethodConfig& config)
- Sets authentication method configuration.
Function documentation
QgsPkiConfigBundle:: QgsPkiConfigBundle(const QgsAuthMethodConfig& config,
const QSslCertificate& cert,
const QSslKey& certkey,
const QList<QSslCertificate>& cachain = QList<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 |
QList<QSslCertificate> QgsPkiConfigBundle:: caChain() const
caChain return the CA chain
| Returns | list of CA certificates |
|---|
void QgsPkiConfigBundle:: setCaChain(const QList<QSslCertificate>& caChain)
setCaChain set the CA chain
| Parameters | |
|---|---|
| caChain | |