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

qca

QCA::CMS

QCA::CMS Class Reference
[QCA user API]

#include <QtCrypto>

Inheritance diagram for QCA::CMS:

Inheritance graph
[legend]

List of all members.


Detailed Description

Cryptographic Message Syntax messaging system.

Cryptographic Message Syntax (CMS) "is used to digitally sign, digest, authenticate, or encrypt arbitrary message content. The CMS describes an encapsulation syntax for data protection. It supports digital signatures and encryption. The syntax allows multiple encapsulations; one encapsulation envelope can be nested inside another. Likewise, one party can digitally sign some previously encapsulated data. It also allows arbitrary attributes, such as signing time, to be signed along with the message content, and provides for other attributes such as countersignatures to be associated with a signature." (from RFC3852 "Cryptographic Message Syntax")

See also:
SecureMessage

SecureMessageKey

Definition at line 883 of file qca_securemessage.h.


Public Member Functions

 CMS (QObject *parent=0, const QString &provider=QString())
SecureMessageKeyList privateKeys () const
void setPrivateKeys (const SecureMessageKeyList &keys)
void setTrustedCertificates (const CertificateCollection &trusted)
void setUntrustedCertificates (const CertificateCollection &untrusted)
CertificateCollection trustedCertificates () const
CertificateCollection untrustedCertificates () const
 ~CMS ()

Constructor & Destructor Documentation

QCA::CMS::CMS ( QObject *  parent = 0,
const QString &  provider = QString() 
) [explicit]

Standard constructor.

Parameters:
parent the parent object for this object
provider the provider to use, if a specific provider is required

Definition at line 641 of file qca_securemessage.cpp.

QCA::CMS::~CMS (  ) 

Definition at line 647 of file qca_securemessage.cpp.


Member Function Documentation

SecureMessageKeyList QCA::CMS::privateKeys (  )  const

Return the private keys set for this object.

Definition at line 662 of file qca_securemessage.cpp.

void QCA::CMS::setPrivateKeys ( const SecureMessageKeyList &  keys  ) 

Set the private keys to use for the messages built using this CMS object.

Keys are required for decrypting and signing (not for encrypting or verifying).

Parameters:
keys the collection of keys to use

Definition at line 679 of file qca_securemessage.cpp.

void QCA::CMS::setTrustedCertificates ( const CertificateCollection &  trusted  ) 

Set the trusted certificates to use for the messages built using this CMS object.

Parameters:
trusted the collection of trusted certificates to use

Definition at line 667 of file qca_securemessage.cpp.

void QCA::CMS::setUntrustedCertificates ( const CertificateCollection &  untrusted  ) 

Set the untrusted certificates to use for the messages built using this CMS object.

This function is useful when verifying messages that don't contain the certificates (or intermediate signers) within the CMS blob. In order to verify such messages, you'll have to pass the possible signer certs with this function.

Parameters:
untrusted the collection of untrusted certificates to use

Definition at line 673 of file qca_securemessage.cpp.

CertificateCollection QCA::CMS::trustedCertificates (  )  const

Return the trusted certificates set for this object.

Definition at line 652 of file qca_securemessage.cpp.

CertificateCollection QCA::CMS::untrustedCertificates (  )  const

Return the untrusted certificates set for this object.

Definition at line 657 of file qca_securemessage.cpp.


The documentation for this class was generated from the following files:
  • qca_securemessage.h
  • qca_securemessage.cpp

qca

Skip menu "qca"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • akonadi
  • Decibel
  • eigen
  • Eigen2
  • kdewin32
  • Phonon
  •     Backend
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for API Reference by doxygen 1.5.4
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