Qt Cryptographic Architecture
QCA::CertificateAuthority Class Reference

#include <QtCrypto>

Collaboration diagram for QCA::CertificateAuthority:

Public Member Functions

Certificate certificate () const
 CertificateAuthority (const Certificate &cert, const PrivateKey &key, const QString &provider)
 CertificateAuthority (const CertificateAuthority &from)
Certificate createCertificate (const PublicKey &key, const CertificateOptions &opts) const
CRL createCRL (const QDateTime &nextUpdate) const
CertificateAuthorityoperator= (const CertificateAuthority &from)
Certificate signRequest (const CertificateRequest &req, const QDateTime &notValidAfter) const
CRL updateCRL (const CRL &crl, const QList< CRLEntry > &entries, const QDateTime &nextUpdate) const
Public Member Functions inherited from QCA::Algorithm
 Algorithm (const Algorithm &from)
void change (const QString &type, const QString &provider)
void change (Provider::Context *c)
Provider::Contextcontext ()
const Provider::Contextcontext () const
Algorithmoperator= (const Algorithm &from)
Providerprovider () const
Provider::ContexttakeContext ()
QString type () const

Additional Inherited Members

Protected Member Functions inherited from QCA::Algorithm
 Algorithm ()
 Algorithm (const QString &type, const QString &provider)

Detailed Description

A Certificate Authority is used to generate Certificates and Certificate Revocation Lists (CRLs).

Constructor & Destructor Documentation

◆ CertificateAuthority() [1/2]

QCA::CertificateAuthority::CertificateAuthority ( const Certificate & cert,
const PrivateKey & key,
const QString & provider )

Create a new Certificate Authority.

Parameters
certthe CA certificate
keythe private key associated with the CA certificate
providerthe provider to use, if a specific provider is required

References QCA::Algorithm::provider().

Referenced by CertificateAuthority(), and operator=().

◆ CertificateAuthority() [2/2]

QCA::CertificateAuthority::CertificateAuthority ( const CertificateAuthority & from)

Copy constructor.

Parameters
fromthe CertificateAuthority to copy from

References CertificateAuthority().

Member Function Documentation

◆ operator=()

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

Standard assignment operator.

Parameters
fromthe CertificateAuthority to copy from

References CertificateAuthority().

◆ certificate()

Certificate QCA::CertificateAuthority::certificate ( ) const

The Certificate belonging to the CertificateAuthority.

This is the Certificate that was passed as an argument to the constructor

◆ signRequest()

Certificate QCA::CertificateAuthority::signRequest ( const CertificateRequest & req,
const QDateTime & notValidAfter ) const

Create a new Certificate by signing the provider CertificateRequest.

Parameters
reqthe CertificateRequest to sign
notValidAfterthe last date that the Certificate will be valid

◆ createCertificate()

Certificate QCA::CertificateAuthority::createCertificate ( const PublicKey & key,
const CertificateOptions & opts ) const

Create a new Certificate.

Parameters
keythe Public Key to use to create the Certificate
optsthe options to use for the new Certificate

◆ createCRL()

CRL QCA::CertificateAuthority::createCRL ( const QDateTime & nextUpdate) const

Create a new Certificate Revocation List (CRL).

Parameters
nextUpdatethe date that the CRL will be updated
Returns
an empty CRL

◆ updateCRL()

CRL QCA::CertificateAuthority::updateCRL ( const CRL & crl,
const QList< CRLEntry > & entries,
const QDateTime & nextUpdate ) const

Update the CRL to include new entries.

Parameters
crlthe CRL to update
entriesthe entries to add to the CRL
nextUpdatethe date that this CRL will be updated
Returns
the update CRL

The documentation for this class was generated from the following file: