46 explicit QgsAuthCertInfo(
const QSslCertificate &cert,
bool manageCertTrust =
false, QWidget *parent
SIP_TRANSFERTHIS =
nullptr,
const QList<QSslCertificate> &connectionCAs = QList<QSslCertificate>() );
52 void setupError(
const QString &msg );
54 void currentCertItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *previous );
56 void updateCurrentCert( QTreeWidgetItem *item );
58 void btnSaveTrust_clicked();
60 void currentPolicyIndexChanged(
int indx );
67 DetailsSection = 1000,
79 void setUpCertDetailsTree();
81 void populateTrustBox();
83 bool populateQcaCertCollection();
85 bool setQcaCertificate(
const QSslCertificate &cert );
87 bool populateCertChain();
89 void setCertHierarchy();
91 void updateCurrentCertInfo(
int chainindx );
93 void populateCertInfo();
95 QTreeWidgetItem *addGroupItem( QTreeWidgetItem *parent,
const QString &group );
97 void addFieldItem( QTreeWidgetItem *parent,
const QString &field,
const QString &value, FieldWidget wdgt = NoWidget,
const QColor &color = QColor() );
99 void populateInfoGeneralSection();
101 void populateInfoDetailsSection();
103 void populateInfoPemTextSection();
105 QCA::Certificate mCert;
106 QList<QSslCertificate> mConnectionCAs;
107 QMap<QString, QPair<QgsAuthCertUtils::CaCertSource, QSslCertificate>> mCaCertsCache;
108 QCA::CertificateCollection mCaCerts;
109 QCA::CertificateChain mACertChain;
110 QList<QSslCertificate> mQCertChain;
111 QSslCertificate mCurrentQCert;
112 QCA::Certificate mCurrentACert;
114 QBrush mDefaultItemForeground;
117 bool mTrustCacheRebuilt =
false;
121 QTreeWidgetItem *mSecGeneral =
nullptr;
122 QTreeWidgetItem *mSecDetails =
nullptr;
123 QTreeWidgetItem *mSecPemText =
nullptr;
124 QTreeWidgetItem *mGrpSubj =
nullptr;
125 QTreeWidgetItem *mGrpIssu =
nullptr;
126 QTreeWidgetItem *mGrpCert =
nullptr;
127 QTreeWidgetItem *mGrpPkey =
nullptr;
128 QTreeWidgetItem *mGrpExts =
nullptr;
130 QVBoxLayout *mAuthNotifyLayout =
nullptr;
131 QLabel *mAuthNotify =
nullptr;
QgsAuthCertInfoDialog(const QSslCertificate &cert, bool manageCertTrust, QWidget *parent=nullptr, const QList< QSslCertificate > &connectionCAs=QList< QSslCertificate >())
Construct a dialog displaying detailed info on a certificate and its hierarchical trust chain.
QgsAuthCertInfo(const QSslCertificate &cert, bool manageCertTrust=false, QWidget *parent=nullptr, const QList< QSslCertificate > &connectionCAs=QList< QSslCertificate >())
Constructor for QgsAuthCertInfo.