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

qca

QCA::CertificateAuthority

QCA::CertificateAuthority Class Reference
[QCA user API]

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

#include <QtCrypto>

Inheritance diagram for QCA::CertificateAuthority:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CertificateAuthority (const CertificateAuthority &from)
 CertificateAuthority (const Certificate &cert, const PrivateKey &key, const QString &provider)
 ~CertificateAuthority ()
Certificate certificate () const
Certificate createCertificate (const PublicKey &key, const CertificateOptions &opts) const
CRL createCRL (const QDateTime &nextUpdate) const
CertificateAuthority & operator= (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

Detailed Description

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

Definition at line 2038 of file qca_cert.h.


Constructor & Destructor Documentation

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

Create a new Certificate Authority.

Parameters:
cert the CA certificate
key the private key associated with the CA certificate
provider the provider to use, if a specific provider is required

Definition at line 2511 of file qca_cert.cpp.

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

Copy constructor.

Parameters:
from the CertificateAuthority to copy from

Definition at line 2517 of file qca_cert.cpp.

QCA::CertificateAuthority::~CertificateAuthority (  ) 

Definition at line 2522 of file qca_cert.cpp.


Member Function Documentation

Certificate QCA::CertificateAuthority::certificate (  )  const

The Certificate belonging to the CertificateAuthority.

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

Definition at line 2532 of file qca_cert.cpp.

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

Create a new Certificate.

Parameters:
key the Public Key to use to create the Certificate
opts the options to use for the new Certificate
CRL QCA::CertificateAuthority::createCRL ( const QDateTime &  nextUpdate  )  const

Create a new Certificate Revocation List (CRL).

Parameters:
nextUpdate the date that the CRL will be updated
Returns:
an empty CRL

Definition at line 2548 of file qca_cert.cpp.

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

Standard assignment operator.

Parameters:
from the CertificateAuthority to copy from

Reimplemented from QCA::Algorithm.

Definition at line 2526 of file qca_cert.cpp.

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

Create a new Certificate by signing the provider CertificateRequest.

Parameters:
req the CertificateRequest to sign
notValidAfter the last date that the Certificate will be valid

Definition at line 2539 of file qca_cert.cpp.

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

Update the CRL to include new entries.

Parameters:
crl the CRL to update
entries the entries to add to the CRL
nextUpdate the date that this CRL will be updated
Returns:
the update CRL

Definition at line 2557 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

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
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