QCA::CertificateCollection Class Reference
[QCA user API]
Bundle of Certificates and CRLs.
More...
#include <QtCrypto>
List of all members.
Detailed Description
Bundle of Certificates and CRLs.
CertificateCollection provides a bundle of Certificates and Certificate Revocation Lists (CRLs), not necessarily related.
- See also:
- QCA::CertificateChain for a representation of a chain of Certificates related by signatures.
- Examples:
-
certtest.cpp, and ssltest.cpp.
Constructor & Destructor Documentation
QCA::CertificateCollection::CertificateCollection |
( |
|
) |
|
Standard copy constructor.
- Parameters:
-
Member Function Documentation
Standard assignment operator.
- Parameters:
-
void QCA::CertificateCollection::addCertificate |
( |
const Certificate & |
cert |
) |
|
void QCA::CertificateCollection::addCRL |
( |
const CRL & |
crl |
) |
|
Append a CRL to this collection.
- Parameters:
-
The Certificates in this collection.
- Examples:
- certtest.cpp.
QList<CRL> QCA::CertificateCollection::crls |
( |
|
) |
const |
The CRLs in 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
- Parameters:
-
| provider | the provider to use, if a specific provider is required |
- Returns:
- true if the CertificateCollection can be imported and exported to PKCS#7 format
bool QCA::CertificateCollection::toFlatTextFile |
( |
const QString & |
fileName |
) |
|
export the CertificateCollection to a plain text file
- Parameters:
-
- Returns:
- true if the export succeeded, otherwise false
bool QCA::CertificateCollection::toPKCS7File |
( |
const QString & |
fileName, |
|
|
const QString & |
provider = QString() | |
|
) |
| | |
export the CertificateCollection to a PKCS#7 file
- Parameters:
-
| 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 |
- Returns:
- true if the export succeeded, otherwise false
import a CertificateCollection from a text file
- Parameters:
-
| 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 |
- Returns:
- the CertificateCollection corresponding to the contents of the file specified in fileName
- Examples:
- certtest.cpp.
import a CertificateCollection from a PKCS#7 file
- Parameters:
-
| 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 |
- Returns:
- the CertificateCollection corresponding to the contents of the file specified in fileName
The documentation for this class was generated from the following file: