#include <QtCrypto>
Public Member Functions | |
void | addCertificate (const Certificate &cert) |
void | addCRL (const CRL &crl) |
void | append (const CertificateCollection &other) |
CertificateCollection (const CertificateCollection &from) | |
CertificateCollection () | |
QList< Certificate > | certificates () const |
QList< CRL > | crls () const |
CertificateCollection | operator+ (const CertificateCollection &other) const |
CertificateCollection & | operator+= (const CertificateCollection &other) |
CertificateCollection & | operator= (const CertificateCollection &from) |
bool | toFlatTextFile (const QString &fileName) |
bool | toPKCS7File (const QString &fileName, const QString &provider=QString()) |
Static Public Member Functions | |
static bool | canUsePKCS7 (const QString &provider=QString()) |
static CertificateCollection | fromFlatTextFile (const QString &fileName, ConvertResult *result=0, const QString &provider=QString()) |
static CertificateCollection | fromPKCS7File (const QString &fileName, ConvertResult *result=0, const QString &provider=QString()) |
CertificateCollection provides a bundle of Certificates and Certificate Revocation Lists (CRLs), not necessarily related.
certtest.cpp, and ssltest.cpp.
QCA::CertificateCollection::CertificateCollection | ( | ) |
Create an empty Certificate / CRL collection.
QCA::CertificateCollection::CertificateCollection | ( | const CertificateCollection & | from | ) |
void QCA::CertificateCollection::addCertificate | ( | const Certificate & | cert | ) |
Append a Certificate to this collection.
cert | the Certificate to add to this CertificateCollection |
void QCA::CertificateCollection::addCRL | ( | const CRL & | crl | ) |
Append a CRL to this collection.
crl | the certificate revokation list to add to this CertificateCollection |
void QCA::CertificateCollection::append | ( | const CertificateCollection & | other | ) |
Add another CertificateCollection to this collection.
other | the CertificateCollection to add to this collection |
static bool QCA::CertificateCollection::canUsePKCS7 | ( | const QString & | provider = QString() |
) | [static] |
test if the CertificateCollection can be imported and exported to PKCS#7 format
provider | the provider to use, if a specific provider is required |
QList<Certificate> QCA::CertificateCollection::certificates | ( | ) | const |
static CertificateCollection QCA::CertificateCollection::fromFlatTextFile | ( | const QString & | fileName, | |
ConvertResult * | result = 0 , |
|||
const QString & | provider = QString() | |||
) | [static] |
import a CertificateCollection from a text file
fileName | the name (and path, if required) to read the certificate collection from | |
result | a pointer to a ConvertResult, which if not-null will be set to the conversion status | |
provider | the provider to use, if a specific provider is required |
static CertificateCollection QCA::CertificateCollection::fromPKCS7File | ( | const QString & | fileName, | |
ConvertResult * | result = 0 , |
|||
const QString & | provider = QString() | |||
) | [static] |
import a CertificateCollection from a PKCS#7 file
fileName | the name (and path, if required) to read the certificate collection from | |
result | a pointer to a ConvertResult, which if not-null will be set to the conversion status | |
provider | the provider to use, if a specific provider is required |
CertificateCollection QCA::CertificateCollection::operator+ | ( | const CertificateCollection & | other | ) | const |
Add another CertificateCollection to this collection.
other | the CertificateCollection to add to this collection |
CertificateCollection& QCA::CertificateCollection::operator+= | ( | const CertificateCollection & | other | ) |
Add another CertificateCollection to this collection.
other | the CertificateCollection to add to this collection |
CertificateCollection& QCA::CertificateCollection::operator= | ( | const CertificateCollection & | from | ) |
bool QCA::CertificateCollection::toFlatTextFile | ( | const QString & | fileName | ) |
export the CertificateCollection to a plain text file
fileName | the name (and path, if required) to write the contents of the CertificateCollection to |
bool QCA::CertificateCollection::toPKCS7File | ( | const QString & | fileName, | |
const QString & | provider = QString() | |||
) |
export the CertificateCollection to a PKCS#7 file
fileName | the name (and path, if required) to write the contents of the CertificateCollection to | |
provider | the provider to use, if a specific provider is required |