Search for usage in LXR

QCA::CertCollectionContext Class Referenceabstract

#include <QtCrypto>

Inheritance diagram for QCA::CertCollectionContext:

Public Member Functions

 CertCollectionContext (Provider *p)
virtual ConvertResult fromPKCS7 (const QByteArray &a, QList< CertContext * > *certs, QList< CRLContext * > *crls) const =0
virtual QByteArray toPKCS7 (const QList< CertContext * > &certs, const QList< CRLContext * > &crls) const =0

Additional Inherited Members

- Protected Member Functions inherited from QCA::BasicContext
 BasicContext (const BasicContext &from)
 BasicContext (Provider *parent, const QString &type)

Detailed Description

X.509 certificate collection provider

This class is part of the provider plugin interface and should not be used directly by applications. You probably want CertificateCollection instead.

Definition at line 1550 of file qcaprovider.h.

Constructor & Destructor Documentation

◆ CertCollectionContext()

QCA::CertCollectionContext::CertCollectionContext ( Provider p)

Standard constructor.

pthe provider associated with this context

Definition at line 1559 of file qcaprovider.h.

Member Function Documentation

◆ fromPKCS7()

virtual ConvertResult QCA::CertCollectionContext::fromPKCS7 ( const QByteArray a,
QList< CertContext * > *  certs,
QList< CRLContext * > *  crls 
) const
pure virtual

Read PKCS#7 DER input and convert it into a list of certificates and CRLs.

The caller is responsible for deleting the returned items.

Returns QCA::ConvertGood if successful, otherwise some error value.

athe input data
certsthe destination list for the certificates
crlsthe destination list for the CRLs

◆ toPKCS7()

virtual QByteArray QCA::CertCollectionContext::toPKCS7 ( const QList< CertContext * > &  certs,
const QList< CRLContext * > &  crls 
) const
pure virtual

Create PKCS#7 DER output based on the input certificates and CRLs.

Returns an empty array on error.

certslist of certificates to store in the output
crlslist of CRLs to store in the output

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:48:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.