Qt 4.8
Classes | Typedefs | Functions
qsslcertificate.h File Reference
#include <QtCore/qnamespace.h>
#include <QtCore/qbytearray.h>
#include <QtCore/qcryptographichash.h>
#include <QtCore/qregexp.h>
#include <QtCore/qsharedpointer.h>
#include <QtNetwork/qssl.h>

Go to the source code of this file.

Classes

class  QMultiMap< Key, T >
 The QMultiMap class is a convenience QMap subclass that provides multi-valued maps. More...
 
class  QSslCertificate
 The QSslCertificate class provides a convenient API for an X509 certificate. More...
 

Typedefs

typedef struct x509_st X509
 

Functions

Q_NETWORK_EXPORT QDebug operator<< (QDebug debug, const QSslCertificate &certificate)
 
Q_NETWORK_EXPORT QDebug operator<< (QDebug debug, QSslCertificate::SubjectInfo info)
 

Typedef Documentation

◆ X509

typedef struct x509_st X509

Definition at line 53 of file qsslcertificate.h.

Function Documentation

◆ operator<<() [1/2]

Q_NETWORK_EXPORT QDebug operator<< ( QDebug  debug,
const QSslCertificate certificate 
)

Definition at line 866 of file qsslcertificate.cpp.

867 {
868  debug << "QSslCertificate("
869  << certificate.version()
870  << ',' << certificate.serialNumber()
871  << ',' << certificate.digest().toBase64()
872  << ',' << certificate.issuerInfo(QSslCertificate::Organization)
873  << ',' << certificate.subjectInfo(QSslCertificate::Organization)
874  << ',' << certificate.alternateSubjectNames()
875 #ifndef QT_NO_TEXTSTREAM
876  << ',' << certificate.effectiveDate()
877  << ',' << certificate.expiryDate()
878 #endif
879  << ')';
880  return debug;
881 }
QByteArray serialNumber() const
Returns the certificate&#39;s serial number string in decimal format.
QString subjectInfo(SubjectInfo info) const
Returns the information for the subject, or an empty string if there is no information for subject in...
QString issuerInfo(SubjectInfo info) const
Returns the issuer information for the subject from the certificate, or an empty string if there is n...
QDateTime effectiveDate() const
Returns the date-time that the certificate becomes valid, or an empty QDateTime if this is a null cer...
QMultiMap< QSsl::AlternateNameEntryType, QString > alternateSubjectNames() const
Returns the list of alternative subject names for this certificate.
QByteArray version() const
Returns the certificate&#39;s version string.
QDateTime expiryDate() const
Returns the date-time that the certificate expires, or an empty QDateTime if this is a null certifica...
QByteArray digest(QCryptographicHash::Algorithm algorithm=QCryptographicHash::Md5) const
Returns a cryptographic digest of this certificate.
QByteArray toBase64() const
Returns a copy of the byte array, encoded as Base64.

◆ operator<<() [2/2]

Q_NETWORK_EXPORT QDebug operator<< ( QDebug  debug,
QSslCertificate::SubjectInfo  info 
)

Definition at line 882 of file qsslcertificate.cpp.

883 {
884  switch (info) {
885  case QSslCertificate::Organization: debug << "Organization"; break;
886  case QSslCertificate::CommonName: debug << "CommonName"; break;
887  case QSslCertificate::CountryName: debug << "CountryName"; break;
888  case QSslCertificate::LocalityName: debug << "LocalityName"; break;
889  case QSslCertificate::OrganizationalUnitName: debug << "OrganizationalUnitName"; break;
890  case QSslCertificate::StateOrProvinceName: debug << "StateOrProvinceName"; break;
891  }
892  return debug;
893 }
static mach_timebase_info_data_t info