KSslCertificateRule Class
Header: | #include <KSslCertificateManager> |
CMake: | find_package(KF6 REQUIRED COMPONENTS KIO) target_link_libraries(mytarget PRIVATE KF6::KIOCore) |
Public Functions
KSslCertificateRule(const QSslCertificate &cert = QSslCertificate(), const QString &hostName = QString()) | |
QSslCertificate | certificate() const |
QDateTime | expiryDateTime() const |
(since 5.64) QList<QSslError> | filterErrors(const QList<QSslError> &errors) const |
QString | hostName() const |
(since 5.64) bool | isErrorIgnored(QSslError::SslError error) const |
bool | isRejected() const |
void | setExpiryDateTime(const QDateTime &dateTime) |
(since 5.64) void | setIgnoredErrors(const QList<QSslError::SslError> &errors) |
(since 5.64) void | setIgnoredErrors(const QList<QSslError> &errors) |
void | setRejected(bool rejected) |
Detailed Description
Certificate rule.
Member Function Documentation
KSslCertificateRule::KSslCertificateRule(const QSslCertificate &cert = QSslCertificate(), const QString &hostName = QString())
QSslCertificate KSslCertificateRule::certificate() const
QDateTime KSslCertificateRule::expiryDateTime() const
See also setExpiryDateTime().
[since 5.64]
QList<QSslError> KSslCertificateRule::filterErrors(const QList<QSslError> &errors) const
Filter out errors that are already ignored.
This function was introduced in 5.64.
QString KSslCertificateRule::hostName() const
[since 5.64]
bool KSslCertificateRule::isErrorIgnored(QSslError::SslError error) const
Returns whether error is ignored for this certificate.
This function was introduced in 5.64.
bool KSslCertificateRule::isRejected() const
void KSslCertificateRule::setExpiryDateTime(const QDateTime &dateTime)
See also expiryDateTime().
[since 5.64]
void KSslCertificateRule::setIgnoredErrors(const QList<QSslError::SslError> &errors)
Set the ignored errors for this certificate.
This function was introduced in 5.64.
[since 5.64]
void KSslCertificateRule::setIgnoredErrors(const QList<QSslError> &errors)
Set the ignored errors for this certificate.
This function was introduced in 5.64.
void KSslCertificateRule::setRejected(bool rejected)
See also isRejected().