Storage set for PKI bundle: SSL certificate, key, optional CA cert chain.
More...
#include <qgsauthconfig.h>
|
| QgsPkiBundle (const QSslCertificate &clientCert=QSslCertificate(), const QSslKey &clientKey=QSslKey(), const QList< QSslCertificate > &caChain=QList< QSslCertificate >()) |
| Construct a bundle from existing PKI components. More...
|
|
const QList< QSslCertificate > | caChain () const |
| Chain of Certificate Authorities for client certificate. More...
|
|
const QString | certId () const |
| The sha hash of the client certificate. More...
|
|
const QSslCertificate | clientCert () const |
| Client certificate object. More...
|
|
const QSslKey | clientKey () const |
| Private key object. More...
|
|
bool | isNull () const |
| Whether the bundle, either its certificate or private key, is null. More...
|
|
bool | isValid () const |
| Whether the bundle is valid. More...
|
|
void | setCaChain (const QList< QSslCertificate > &cachain) |
| Sets chain of Certificate Authorities for client certificate. More...
|
|
void | setClientCert (const QSslCertificate &cert) |
| Sets client certificate object. More...
|
|
void | setClientKey (const QSslKey &certkey) |
| Sets private key object. More...
|
|
|
static const QgsPkiBundle | fromPemPaths (const QString &certPath, const QString &keyPath, const QString &keyPass=QString(), const QList< QSslCertificate > &caChain=QList< QSslCertificate >()) |
| Construct a bundle of PKI components from PEM-formatted file paths. More...
|
|
static const QgsPkiBundle | fromPkcs12Paths (const QString &bundlepath, const QString &bundlepass=QString()) |
| Construct a bundle of PKI components from a PKCS#12 file path. More...
|
|
Storage set for PKI bundle: SSL certificate, key, optional CA cert chain.
- Note
- Useful for caching the bundle during application run sessions
Definition at line 210 of file qgsauthconfig.h.
◆ QgsPkiBundle()
QgsPkiBundle::QgsPkiBundle |
( |
const QSslCertificate & |
clientCert = QSslCertificate() , |
|
|
const QSslKey & |
clientKey = QSslKey() , |
|
|
const QList< QSslCertificate > & |
caChain = QList<QSslCertificate>() |
|
) |
| |
Construct a bundle from existing PKI components.
- Parameters
-
clientCert | Certificate to store in bundle |
clientKey | Private key to store in bundle |
caChain | Chain of Certificate Authorities for client certificate |
Definition at line 210 of file qgsauthconfig.cpp.
◆ caChain()
const QList< QSslCertificate > QgsPkiBundle::caChain |
( |
| ) |
const |
|
inline |
Chain of Certificate Authorities for client certificate.
Definition at line 264 of file qgsauthconfig.h.
◆ certId()
const QString QgsPkiBundle::certId |
( |
| ) |
const |
◆ clientCert()
const QSslCertificate QgsPkiBundle::clientCert |
( |
| ) |
const |
|
inline |
◆ clientKey()
const QSslKey QgsPkiBundle::clientKey |
( |
| ) |
const |
|
inline |
◆ fromPemPaths()
const QgsPkiBundle QgsPkiBundle::fromPemPaths |
( |
const QString & |
certPath, |
|
|
const QString & |
keyPath, |
|
|
const QString & |
keyPass = QString() , |
|
|
const QList< QSslCertificate > & |
caChain = QList<QSslCertificate>() |
|
) |
| |
|
static |
Construct a bundle of PKI components from PEM-formatted file paths.
- Parameters
-
certPath | Certificate file path |
keyPath | Private key path |
keyPass | Private key passphrase |
caChain | Chain of Certificate Authorities for client certificate |
Definition at line 221 of file qgsauthconfig.cpp.
◆ fromPkcs12Paths()
const QgsPkiBundle QgsPkiBundle::fromPkcs12Paths |
( |
const QString & |
bundlepath, |
|
|
const QString & |
bundlepass = QString() |
|
) |
| |
|
static |
Construct a bundle of PKI components from a PKCS#12 file path.
- Parameters
-
bundlepath | Bundle file path |
bundlepass | Optional bundle passphrase |
Definition at line 249 of file qgsauthconfig.cpp.
◆ isNull()
bool QgsPkiBundle::isNull |
( |
| ) |
const |
Whether the bundle, either its certificate or private key, is null.
Definition at line 296 of file qgsauthconfig.cpp.
◆ isValid()
bool QgsPkiBundle::isValid |
( |
| ) |
const |
◆ setCaChain()
void QgsPkiBundle::setCaChain |
( |
const QList< QSslCertificate > & |
cachain | ) |
|
|
inline |
Sets chain of Certificate Authorities for client certificate.
Definition at line 266 of file qgsauthconfig.h.
◆ setClientCert()
void QgsPkiBundle::setClientCert |
( |
const QSslCertificate & |
cert | ) |
|
◆ setClientKey()
void QgsPkiBundle::setClientKey |
( |
const QSslKey & |
certkey | ) |
|
The documentation for this class was generated from the following files: