QSslCertificate Class Reference
|
Constant | Value | Description |
---|---|---|
QSslCertificate::Organization | 0 | "O" The name of the organization. |
QSslCertificate::CommonName | 1 | "CN" The common name; most often this is used to store the host name. |
QSslCertificate::LocalityName | 2 | "L" The locality. |
QSslCertificate::OrganizationalUnitName | 3 | "OU" The organizational unit name. |
QSslCertificate::CountryName | 4 | "C" The country. |
QSslCertificate::StateOrProvinceName | 5 | "ST" The state or province. |
Constructs a QSslCertificate by reading format encoded data from device and using the first certificate found. You can later call isNull() to see if device contained a certificate, and if this certificate was loaded successfully.
Constructs a QSslCertificate by parsing the format encoded data and using the first available certificate found. You can later call isNull() to see if data contained a certificate, and if this certificate was loaded successfully.
Constructs an identical copy of other.
Destroys the QSslCertificate.
Returns the list of alternative subject names for this certificate. The alternate subject names typically contain host names, optionally with wildcards, that are valid for this certificate.
These names are tested against the connected peer's host name, if either the subject information for CommonName doesn't define a valid host name, or the subject info name doesn't match the peer's host name.
See also subjectInfo().
Clears the contents of this certificate, making it a null certificate.
See also isNull().
Returns a cryptographic digest of this certificate. By default, and MD5 digest will be generated, but you can also specify a custom algorithm.
Returns the date-time that the certificate becomes valid, or an empty QDateTime if this is a null certificate.
See also expiryDate().
Returns the date-time that the certificate expires, or an empty QDateTime if this is a null certificate.
See also effectiveDate().
Searches for and parses all certificates in data that are encoded in the specified format and returns them in a list of certificates.
See also fromDevice().
Searches for and parses all certificates in device that are encoded in the specified format and returns them in a list of certificates.
See also fromData().
Searches all files in the path for certificates encoded in the specified format and returns them in a list. must be a file or a pattern matching one or more files, as specified by syntax.
Example:
foreach (QSslCertificate cert, QSslCertificate::fromPath("C:/ssl/certificate.*.pem", QRegExp::Wildcard)) { qDebug() << cert.issuerInfo(QSslCertificate::Organization); }
See also fromData().
Returns a pointer to the native certificate handle, if there is one, or a null pointer otherwise.
You can use this handle, together with the native API, to access extended information about the certificate.
Warning: Use of this function has a high probability of being non-portable, and its return value may vary from platform to platform or change from minor release to minor release.
Returns true if this is a null certificate (i.e., a certificate with no contents); otherwise returns false.
By default, QSslCertificate constructs a null certificate.
See also isValid() and clear().
Returns true if this certificate is valid; otherwise returns false.
Note: Currently, this function only checks that the current data-time is within the date-time range during which the certificate is considered valid. No other checks are currently performed.
See also isNull().
Returns the issuer information for the subject from the certificate, or an empty string if there is no information for subject in the certificate.
See also subjectInfo().
This is an overloaded member function, provided for convenience.
Returns the issuer information for tag from the certificate, or an empty string if there is no information for tag in the certificate.
See also subjectInfo().
Returns the certificate subject's public key.
Returns the certificate's serial number string.
Returns the information for the subject, or an empty string if there is no information for subject in the certificate.
See also issuerInfo().
This is an overloaded member function, provided for convenience.
Returns the subject information for tag, or an empty string if there is no information for tag in the certificate.
See also issuerInfo().
Returns this certificate converted to a DER (binary) encoded representation.
Returns this certificate converted to a PEM (Base64) encoded representation.
Returns the certificate's version string.
Returns true if this certificate is not the same as other; otherwise returns false.
Copies the contents of other into this certificate, making the two certificates identical.
Returns true if this certificate is the same as other; otherwise returns false.
Copyright © 2008 Nokia | Trademarks | Qt 4.4.3 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |