|
Qt Cryptographic Architecture
|
#include <QtCrypto>
Public Member Functions | |
| void | addCertificate (const Certificate &cert) |
| void | addCRL (const CRL &crl) |
| void | append (const CertificateCollection &other) |
| CertificateCollection () | |
| CertificateCollection (const CertificateCollection &from) | |
| 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()) |
Bundle of Certificates and CRLs.
CertificateCollection provides a bundle of Certificates and Certificate Revocation Lists (CRLs), not necessarily related.
| QCA::CertificateCollection::CertificateCollection | ( | ) |
Create an empty Certificate / CRL collection.
| QCA::CertificateCollection::CertificateCollection | ( | const CertificateCollection & | from | ) |
Standard copy constructor.
| from | the CertificateCollection to copy from |
| CertificateCollection& QCA::CertificateCollection::operator= | ( | const CertificateCollection & | from | ) |
Standard assignment operator.
| from | the CertificateCollection to copy 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 |
| QList<Certificate> QCA::CertificateCollection::certificates | ( | ) | const |
The Certificates in this collection.
| void QCA::CertificateCollection::append | ( | const CertificateCollection & | other | ) |
Add another CertificateCollection to this collection.
| other | the CertificateCollection to add to this collection |
| 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 |
|
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 |
| 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 |
|
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 |
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 |
1.8.9.1