|
QGIS API Documentation
2.12.0-Lyon
|
Storage set for PKI bundle: SSL certificate, key, optional CA cert chain. More...
#include <qgsauthconfig.h>
Public Member Functions | |
| QgsPkiBundle (const QSslCertificate &clientCert=QSslCertificate(), const QSslKey &clientKey=QSslKey(), const QList< QSslCertificate > &caChain=QList< QSslCertificate >()) | |
| Construct a bundle from existing PKI components. More... | |
| ~QgsPkiBundle () | |
| 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) |
| Set chain of Certificate Authorities for client certificate. More... | |
| void | setClientCert (const QSslCertificate &cert) |
| Set client certificate object. More... | |
| void | setClientKey (const QSslKey &certkey) |
| Set private key object. More... | |
Static Public Member Functions | |
| static const QgsPkiBundle | fromPemPaths (const QString &certPath, const QString &keyPath, const QString &keyPass=QString::null, 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::null) |
| 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.
Definition at line 188 of file qgsauthconfig.h.
| QgsPkiBundle::QgsPkiBundle | ( | const QSslCertificate & | clientCert = QSslCertificate(), |
| const QSslKey & | clientKey = QSslKey(), |
||
| const QList< QSslCertificate > & | caChain = QList<QSslCertificate>() |
||
| ) |
Construct a bundle from existing PKI components.
| clientCert | Certificate to store in bundle |
| clientKey | Private key to store in bundle |
| caChain | Chain of Certificate Authorities for client certificate |
Definition at line 175 of file qgsauthconfig.cpp.
| QgsPkiBundle::~QgsPkiBundle | ( | ) |
Definition at line 186 of file qgsauthconfig.cpp.
|
inline |
Chain of Certificate Authorities for client certificate.
Definition at line 242 of file qgsauthconfig.h.
| const QString QgsPkiBundle::certId | ( | ) | const |
The sha hash of the client certificate.
Definition at line 313 of file qgsauthconfig.cpp.
|
inline |
Client certificate object.
Definition at line 232 of file qgsauthconfig.h.
|
inline |
Private key object.
Definition at line 237 of file qgsauthconfig.h.
|
static |
Construct a bundle of PKI components from PEM-formatted file paths.
| certPath | Certificate file path |
| keyPath | Private key path |
| keyPass | Private key passphrase |
| caChain | Chain of Certificate Authorities for client certificate |
Definition at line 209 of file qgsauthconfig.cpp.
|
static |
Construct a bundle of PKI components from a PKCS#12 file path.
| bundlepath | Bundle file path |
| bundlepass | Optional bundle passphrase |
Definition at line 256 of file qgsauthconfig.cpp.
| bool QgsPkiBundle::isNull | ( | ) | const |
Whether the bundle, either its certificate or private key, is null.
Definition at line 303 of file qgsauthconfig.cpp.
| bool QgsPkiBundle::isValid | ( | ) | const |
Whether the bundle is valid.
Definition at line 308 of file qgsauthconfig.cpp.
|
inline |
Set chain of Certificate Authorities for client certificate.
Definition at line 244 of file qgsauthconfig.h.
| void QgsPkiBundle::setClientCert | ( | const QSslCertificate & | cert | ) |
Set client certificate object.
Definition at line 322 of file qgsauthconfig.cpp.
| void QgsPkiBundle::setClientKey | ( | const QSslKey & | certkey | ) |
Set private key object.
Definition at line 331 of file qgsauthconfig.cpp.
1.8.9.1