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

qca

QCA::PKCS12Context

QCA::PKCS12Context Class Reference
[QCA provider API]

PKCS#12 provider. More...

#include <QtCrypto>

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

List of all members.

Public Member Functions

 PKCS12Context (Provider *p)
virtual ConvertResult fromPKCS12 (const QByteArray &in, const SecureArray &passphrase, QString *name, QList< CertContext * > *chain, PKeyContext **priv) const =0
virtual QByteArray toPKCS12 (const QString &name, const QList< const CertContext * > &chain, const PKeyContext &priv, const SecureArray &passphrase) const =0

Detailed Description

PKCS#12 provider.

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

Definition at line 1553 of file qcaprovider.h.


Constructor & Destructor Documentation

QCA::PKCS12Context::PKCS12Context ( Provider *  p  )  [inline]

Standard constructor.

Parameters:
p the Provider associated with this context

Definition at line 1562 of file qcaprovider.h.


Member Function Documentation

virtual ConvertResult QCA::PKCS12Context::fromPKCS12 ( const QByteArray &  in,
const SecureArray &  passphrase,
QString *  name,
QList< CertContext * > *  chain,
PKeyContext **  priv 
) const [pure virtual]

Read PKCS#12 DER input and convert it into a set of output items.

The caller is responsible for deleting the returned items.

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

Parameters:
in the input data
passphrase the passphrase needed to decrypt the input data
name the destination string for the friendly name
chain the destination list for the certificate chain
priv address of a pointer to accept the private key
virtual QByteArray QCA::PKCS12Context::toPKCS12 ( const QString &  name,
const QList< const CertContext * > &  chain,
const PKeyContext &  priv,
const SecureArray &  passphrase 
) const [pure virtual]

Create PKCS#12 DER output based on a set of input items.

Returns an empty array on error.

Parameters:
name the friendly name of the data
chain the certificate chain to store
priv the private key to store
passphrase the passphrase to encrypt the PKCS#12 data with

The documentation for this class was generated from the following file:
  • qcaprovider.h

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