5#ifndef QSSLCERTIFICATE_H
6#define QSSLCERTIFICATE_H
12#include <QtNetwork/qtnetworkglobal.h>
13#include <QtCore/qnamespace.h>
14#include <QtCore/qbytearray.h>
15#include <QtCore/qcryptographichash.h>
16#include <QtCore/qdatetime.h>
17#include <QtCore/qmap.h>
18#include <QtCore/qshareddata.h>
19#include <QtNetwork/qssl.h>
126#ifndef QT_NO_DEBUG_STREAM
IOBluetoothDevice * device
\inmodule QtCore\reentrant
\inmodule QtCore \reentrant
The QSslCertificateExtension class provides an API for accessing the extensions of an X509 certificat...
The QSslCertificate class provides a convenient API for an X509 certificate.
~QSslCertificate()
Destroys the QSslCertificate.
QList< QByteArray > issuerInfoAttributes() const
QStringList subjectInfo(SubjectInfo info) const
Returns the information for the subject, or an empty list if there is no information for subject in t...
static QList< QSslCertificate > fromDevice(QIODevice *device, QSsl::EncodingFormat format=QSsl::Pem)
Searches for and parses all certificates in device that are encoded in the specified format and retur...
bool isSelfSigned() const
QMultiMap< QSsl::AlternativeNameEntryType, QString > subjectAlternativeNames() const
Returns the list of alternative subject names for this certificate.
static QList< QSslCertificate > fromData(const QByteArray &data, QSsl::EncodingFormat format=QSsl::Pem)
Searches for and parses all certificates in data that are encoded in the specified format and returns...
QString issuerDisplayName() const
void swap(QSslCertificate &other) noexcept
QSslCertificate & operator=(QSslCertificate &&other) noexcept
QByteArray digest(QCryptographicHash::Algorithm algorithm=QCryptographicHash::Md5) const
Returns a cryptographic digest of this certificate.
QDateTime expiryDate() const
Returns the date-time that the certificate expires, or an empty QDateTime if this is a null certifica...
static QList< QSslError > verify(const QList< QSslCertificate > &certificateChain, const QString &hostName=QString())
Verifies a certificate chain.
QSslKey publicKey() const
Returns the certificate subject's public key.
QByteArray version() const
Returns the certificate's version string.
static QList< QSslCertificate > fromPath(const QString &path, QSsl::EncodingFormat format=QSsl::Pem, PatternSyntax syntax=PatternSyntax::FixedString)
friend Q_NETWORK_EXPORT size_t qHash(const QSslCertificate &key, size_t seed) noexcept
QDateTime effectiveDate() const
Returns the date-time that the certificate becomes valid, or an empty QDateTime if this is a null cer...
QStringList issuerInfo(SubjectInfo info) const
Returns the issuer information for the subject from the certificate, or an empty list if there is no ...
QString subjectDisplayName() const
SubjectInfo
Describes keys that you can pass to QSslCertificate::issuerInfo() or QSslCertificate::subjectInfo() t...
@ DistinguishedNameQualifier
bool operator!=(const QSslCertificate &other) const
Returns true if this certificate is not the same as other; otherwise returns false.
QByteArray toDer() const
Returns this certificate converted to a DER (binary) encoded representation.
QList< QSslCertificateExtension > extensions() const
Returns a list containing the X509 extensions of this certificate.
QList< QByteArray > subjectInfoAttributes() const
bool isNull() const
Returns true if this is a null certificate (i.e., a certificate with no contents); otherwise returns ...
bool isBlacklisted() const
Returns true if this certificate is blacklisted; otherwise returns false.
QByteArray serialNumber() const
Returns the certificate's serial number string in hexadecimal format.
QString toText() const
Returns this certificate converted to a human-readable text representation.
QByteArray toPem() const
Returns this certificate converted to a PEM (Base64) encoded representation.
static bool importPkcs12(QIODevice *device, QSslKey *key, QSslCertificate *cert, QList< QSslCertificate > *caCertificates=nullptr, const QByteArray &passPhrase=QByteArray())
The QSslError class provides an SSL error.
The QSslKey class provides an interface for private and public keys.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QTlsBackend is a factory class, providing implementations for the QSsl classes.
EncodingFormat
Describes supported encoding formats for certificates and keys.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint attribute
GLuint64 GLenum void * handle
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLint GLsizei GLsizei GLenum format
GLsizei const GLchar *const * path
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Q_NETWORK_EXPORT size_t qHash(const QSslCertificate &key, size_t seed=0) noexcept
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslCertificate &certificate)
QFileInfo info(fileName)
[8]
QList< QSslCertificate > cert
[0]