Obsolete Members for QSslCertificate

以下成员源于类 QSslCertificate 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) QMultiMap<QSsl::AlternateNameEntryType, QString> alternateSubjectNames () const
(obsolete) bool isValid () const

成员函数文档编制

QMultiMap < QSsl::AlternateNameEntryType , QString > QSslCertificate:: alternateSubjectNames () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

使用 QSslCertificate::subjectAlternativeNames ();

bool QSslCertificate:: isValid () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

To verify a certificate, use verify (). To check if a certificate is blacklisted, use isBlacklisted (). To check if a certificate has expired or is not yet valid, compare expiryDate () 和 effectiveDate () 采用 QDateTime::currentDateTime ()

This function checks that the current date-time is within the date-time range during which the certificate is considered valid, and checks that the certificate is not in a blacklist of fraudulent certificates.

另请参阅 isNull (), verify (), isBlacklisted (), expiryDate (),和 effectiveDate ().