• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

qca

QCA::CertificateCollection

QCA::CertificateCollection Class Reference
[QCA user API]

#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.

Definition at line 1891 of file qca_cert.h.


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())
 ~CertificateCollection ()

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())

Constructor & Destructor Documentation

QCA::CertificateCollection::CertificateCollection (  ) 

Create an empty Certificate / CRL collection.

Definition at line 2328 of file qca_cert.cpp.

QCA::CertificateCollection::CertificateCollection ( const CertificateCollection &  from  ) 

Standard copy constructor.

Parameters:
from the CertificateCollection to copy from

Definition at line 2333 of file qca_cert.cpp.

QCA::CertificateCollection::~CertificateCollection (  ) 

Definition at line 2338 of file qca_cert.cpp.


Member Function Documentation

void QCA::CertificateCollection::addCertificate ( const Certificate &  cert  ) 

Append a Certificate to this collection.

Parameters:
cert the Certificate to add to this CertificateCollection

Definition at line 2348 of file qca_cert.cpp.

void QCA::CertificateCollection::addCRL ( const CRL &  crl  ) 

Append a CRL to this collection.

Parameters:
crl the certificate revokation list to add to this CertificateCollection

Definition at line 2353 of file qca_cert.cpp.

void QCA::CertificateCollection::append ( const CertificateCollection &  other  ) 

Add another CertificateCollection to this collection.

Parameters:
other the CertificateCollection to add to this collection

Definition at line 2368 of file qca_cert.cpp.

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

Definition at line 2387 of file qca_cert.cpp.

QList< Certificate > QCA::CertificateCollection::certificates (  )  const

The Certificates in this collection.

Definition at line 2358 of file qca_cert.cpp.

QList< CRL > QCA::CertificateCollection::crls (  )  const

The CRLs in this collection.

Definition at line 2363 of file qca_cert.cpp.

CertificateCollection QCA::CertificateCollection::fromFlatTextFile ( const QString &  fileName,
ConvertResult *  result = 0,
const QString &  provider = QString() 
) [static]

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

Definition at line 2431 of file qca_cert.cpp.

CertificateCollection QCA::CertificateCollection::fromPKCS7File ( const QString &  fileName,
ConvertResult *  result = 0,
const QString &  provider = QString() 
) [static]

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

Definition at line 2469 of file qca_cert.cpp.

CertificateCollection QCA::CertificateCollection::operator+ ( const CertificateCollection &  other  )  const

Add another CertificateCollection to this collection.

Parameters:
other the CertificateCollection to add to this collection

Definition at line 2374 of file qca_cert.cpp.

CertificateCollection & QCA::CertificateCollection::operator+= ( const CertificateCollection &  other  ) 

Add another CertificateCollection to this collection.

Parameters:
other the CertificateCollection to add to this collection

Definition at line 2381 of file qca_cert.cpp.

CertificateCollection & QCA::CertificateCollection::operator= ( const CertificateCollection &  from  ) 

Standard assignment operator.

Parameters:
from the CertificateCollection to copy from

Definition at line 2342 of file qca_cert.cpp.

bool QCA::CertificateCollection::toFlatTextFile ( const QString &  fileName  ) 

export the CertificateCollection to a plain text file

Parameters:
fileName the name (and path, if required) to write the contents of the CertificateCollection to
Returns:
true if the export succeeded, otherwise false

Definition at line 2392 of file qca_cert.cpp.

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

Definition at line 2407 of file qca_cert.cpp.


The documentation for this class was generated from the following files:
  • qca_cert.h
  • qca_cert.cpp

qca

Skip menu "qca"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • akonadi
  • Decibel
  • eigen
  • Eigen2
  • kdewin32
  • Phonon
  •     Backend
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal