51 explicit QgsAuthSslConfigWidget( QWidget *parent
SIP_TRANSFERTHIS =
nullptr,
const QSslCertificate &cert = QSslCertificate(),
const QString &hostport = QString(),
const QList<QSslCertificate> &connectionCAs = QList<QSslCertificate>() );
54 QGroupBox *certificateGroupBox();
56 QGroupBox *sslConfigGroupBox();
62 const QSslCertificate sslCertificate();
65 const QString sslHost();
68 QSsl::SslProtocol sslProtocol();
71 const QList<QSslError::SslError> sslIgnoreErrorEnums();
74 QSslSocket::PeerVerifyMode sslPeerVerifyMode();
80 int sslPeerVerifyDepth();
84 void enableSslCustomOptions(
bool enable );
88 void setSslCertificate(
const QSslCertificate &cert,
const QString &hostport = QString() );
94 void saveSslCertConfig();
97 void resetSslCertConfig();
100 void setSslProtocol( QSsl::SslProtocol protocol );
103 void resetSslProtocol();
106 void appendSslIgnoreErrors(
const QList<QSslError> &errors );
109 void setSslIgnoreErrorEnums(
const QList<QSslError::SslError> &errorenums );
112 void setSslIgnoreErrors(
const QList<QSslError> &errors );
115 void resetSslIgnoreErrors();
118 void setSslPeerVerify( QSslSocket::PeerVerifyMode mode,
int modedepth );
121 void resetSslPeerVerify();
124 void setSslHost(
const QString &host );
127 void setConfigCheckable(
bool checkable );
130 void validateHostPortText(
const QString &txt );
149 void btnCertInfo_clicked();
158 bool validateHostPort(
const QString &txt );
160 void setUpSslConfigTree();
161 QTreeWidgetItem *addRootItem(
const QString &label );
163 QSslCertificate mCert;
164 QList<QSslCertificate> mConnectionCAs;
166 QTreeWidgetItem *mProtocolItem =
nullptr;
167 QComboBox *mProtocolCmbBx =
nullptr;
168 QTreeWidgetItem *mIgnoreErrorsItem =
nullptr;
169 QTreeWidgetItem *mVerifyModeItem =
nullptr;
170 QComboBox *mVerifyPeerCmbBx =
nullptr;
171 QTreeWidgetItem *mVerifyDepthItem =
nullptr;
172 QSpinBox *mVerifyDepthSpnBx =
nullptr;
174 bool mCanSave =
false;
176 bool mDisabled =
false;
177 QVBoxLayout *mAuthNotifyLayout =
nullptr;
178 QLabel *mAuthNotify =
nullptr;