QCA::CAContext

Search for usage in LXR

QCA::CAContext Class Referenceabstract

#include <QtCrypto>

Inheritance diagram for QCA::CAContext:

Public Member Functions

 CAContext (Provider *p)
 
virtual CertContextcertificate () const =0
 
virtual CertContextcreateCertificate (const PKeyContext &pub, const CertificateOptions &opts) const =0
 
virtual CRLContextcreateCRL (const QDateTime &nextUpdate) const =0
 
virtual void setup (const CertContext &cert, const PKeyContext &priv)=0
 
virtual CertContextsignRequest (const CSRContext &req, const QDateTime &notValidAfter) const =0
 
virtual CRLContextupdateCRL (const CRLContext &crl, const QList< CRLEntry > &entries, const QDateTime &nextUpdate) const =0
 

Additional Inherited Members

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

Detailed Description

X.509 certificate authority provider.

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

Definition at line 1602 of file qcaprovider.h.

Constructor & Destructor Documentation

QCA::CAContext::CAContext ( Provider p)
inline

Standard constructor.

Parameters
pthe Provider associated with this context

Definition at line 1611 of file qcaprovider.h.

Member Function Documentation

virtual CertContext* QCA::CAContext::certificate ( ) const
pure virtual

Returns a copy of the CA's certificate.

The caller is responsible for deleting it.

virtual CertContext* QCA::CAContext::createCertificate ( const PKeyContext pub,
const CertificateOptions opts 
) const
pure virtual

Issue a certificate based on a public key and options, and return the certificate.

The caller is responsible for deleting it.

Parameters
pubthe public key of the certificate
optsthe options to use for generation
virtual CRLContext* QCA::CAContext::createCRL ( const QDateTime nextUpdate) const
pure virtual

Create a new CRL and return it.

The caller is responsible for deleting it.

The CRL has no entries in it.

Parameters
nextUpdatethe expiration date of the CRL
virtual void QCA::CAContext::setup ( const CertContext cert,
const PKeyContext priv 
)
pure virtual

Prepare the object for usage.

This must be called before any CA operations are performed.

Parameters
certthe certificate of the CA
privthe private key of the CA
virtual CertContext* QCA::CAContext::signRequest ( const CSRContext req,
const QDateTime notValidAfter 
) const
pure virtual

Issue a certificate based on a certificate request, and return the certificate.

The caller is responsible for deleting it.

Parameters
reqthe certificate request
notValidAfterthe expiration date
virtual CRLContext* QCA::CAContext::updateCRL ( const CRLContext crl,
const QList< CRLEntry > &  entries,
const QDateTime nextUpdate 
) const
pure virtual

Update an existing CRL, by examining an old one and creating a new one based on it.

The new CRL is returned, and the caller is responsible for deleting it.

Parameters
crlan existing CRL issued by this CA
entriesthe list of revoked entries
nextUpdatethe expiration date of the new CRL

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Apr 22 2021 23:04:22 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.