![]() |
Qt 6.x
The Qt SDK
|
X509Certificate is an abstract class that allows a TLS backend to provide an implementation of the QSslCertificate class. More...
#include <qtlsbackend_p.h>
X509Certificate is an abstract class that allows a TLS backend to provide an implementation of the QSslCertificate class.
(Network-private)
This class provides an interface that must be reimplemented by a TLS plugin, that supports QSslCertificate. Most functions are pure virtual, and thus have to be overridden. For some of them, an empty overrider is acceptable, though a part of functionality in QSslCertificate will be missing.
Definition at line 97 of file qtlsbackend_p.h.
|
virtualdefault |
Destroys this certificate.
|
pure virtual |
This function is expected to return the date-time that the certificate becomes valid, or an empty QDateTime if this is a null certificate.
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
This function is expected to return the date-time that the certificate expires, or an empty QDateTime if this is a null certificate.
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
This function is expected to return a pointer to the native certificate handle, if there is one, else nullptr.
Implemented in QTlsPrivate::X509CertificateOpenSSL, QTlsPrivate::X509CertificateSchannel, and QTlsPrivate::X509CertificateGeneric.
|
pure virtualnoexcept |
This function is expected to return the hash value for this certificate, using seed to seed the calculation.
Implemented in QTlsPrivate::X509CertificateOpenSSL, and QTlsPrivate::X509CertificateGeneric.
|
pure virtual |
This function is expected to return true
if this certificate is the same as the other, false
otherwise. Used by QSslCertificate's comparison operators.
Implemented in QTlsPrivate::X509CertificateOpenSSL, and QTlsPrivate::X509CertificateGeneric.
|
pure virtual |
This function is expected to return the criticality of the extension with index i.
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
This function is expected to return true
if this extension is supported. In this case, supported simply means that the structure of the QVariant returned by the valueForExtension() accessor will remain unchanged between versions.
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
Returns true if this certificate was default-constructed and not initialized yet. This function is called by QSslCertificate::isNull().
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
This function is needed to implement QSslCertificate::isSelfSigned()
Implemented in QTlsPrivate::X509CertificateOpenSSL, and QTlsPrivate::X509CertificateGeneric.
|
pure virtual |
This function is expected to return the issuer information for attribute from the certificate, or an empty list if there is no information for attribute in the certificate. There can be more than one entry for an attribute.
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
This function is expected to return the issuer information for the subject from the certificate, or an empty list if there is no information for subject in the certificate. There can be more than one entry of each type.
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
This function is expected to return a list of the attributes that have values in the issuer information of this certificate. The information associated with a given attribute can be accessed using the issuerInfo() method. Note that this list may include the OIDs for any elements that are not known by the TLS backend.
Implemented in QTlsPrivate::X509CertificateBase.
This function is expected to return the name for the extension with index i. If no name is known for the extension then the OID will be returned.
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
This function is expected to return the number of X509 extensions of this certificate.
Implemented in QTlsPrivate::X509CertificateBase.
This function is expected to return the ASN.1 OID for the extension with index i.
Implemented in QTlsPrivate::X509CertificateBase.
|
virtual |
Returns the certificate subject's public key.
Reimplemented in QTlsPrivate::X509CertificateOpenSSL, QTlsPrivate::X509CertificateSchannel, and QTlsPrivate::X509CertificateSecureTransport.
Definition at line 1695 of file qtlsbackend.cpp.
|
pure virtual |
This function is expected to return the certificate's serial number string in hexadecimal format.
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
This function is expected to return the list of alternative subject names for this certificate. The alternative names typically contain host names, optionally with wildcards, that are valid for this certificate.
Implemented in QTlsPrivate::X509CertificateOpenSSL, and QTlsPrivate::X509CertificateGeneric.
|
pure virtual |
This function is expected to return the subject information for attribute, or an empty list if there is no information for attribute in the certificate. There can be more than one entry for an attribute.
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
This function is expected to return the information for the subject, or an empty list if there is no information for subject in the certificate. There can be more than one entry of each type.
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
This function is expected to return a list of the attributes that have values in the subject information of this certificate. The information associated with a given attribute can be accessed using the subjectInfo() method. Note that this list may include the OIDs for any elements that are not known by the TLS backend.
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
This function is expected to return this certificate converted to a DER (binary) encoded representation.
Implemented in QTlsPrivate::X509CertificateOpenSSL, and QTlsPrivate::X509CertificateGeneric.
|
pure virtual |
This function is expected to return this certificate converted to a PEM (Base64) encoded representation.
Implemented in QTlsPrivate::X509CertificateOpenSSL, and QTlsPrivate::X509CertificateGeneric.
|
pure virtual |
This function is expected to return this certificate converted to a human-readable text representation.
Implemented in QTlsPrivate::X509CertificateOpenSSL, and QTlsPrivate::X509CertificateGeneric.
This function is expected to return the value of the extension with index i. The structure of the value returned depends on the extension type
Implemented in QTlsPrivate::X509CertificateBase.
|
pure virtual |
Implements QSslCertificate::version().
Implemented in QTlsPrivate::X509CertificateBase.