certmanager/lib Library API Documentation

CryptPlugWrapper Class Reference

This class provides C++ access to the CRYPTPLUG API. More...

#include <cryptplugwrapper.h>

Collaboration diagram for CryptPlugWrapper:

Collaboration graph
[legend]
List of all members.

Public Types

typedef unsigned long SigStatusFlags
enum  InitStatus {
  InitStatus_undef = 0, InitStatus_Ok = 1, InitStatus_NoLibName = 2, InitStatus_LoadError = 0x1000,
  InitStatus_InitError = 0x2000
}
enum  {
  SigStatus_UNKNOWN = 0x0000, SigStatus_VALID = SigStat_VALID, SigStatus_GREEN = SigStat_GREEN, SigStatus_RED = SigStat_RED,
  SigStatus_KEY_REVOKED = SigStat_KEY_REVOKED, SigStatus_KEY_EXPIRED = SigStat_KEY_EXPIRED, SigStatus_SIG_EXPIRED = SigStat_SIG_EXPIRED, SigStatus_KEY_MISSING = SigStat_KEY_MISSING,
  SigStatus_CRL_MISSING = SigStat_CRL_MISSING, SigStatus_CRL_TOO_OLD = SigStat_CRL_TOO_OLD, SigStatus_BAD_POLICY = SigStat_BAD_POLICY, SigStatus_SYS_ERROR = SigStat_SYS_ERROR,
  SigStatus_NUMERICAL_CODE = 0x8000
}
enum  { CertStatus_EXPIRES_NEVER = CRYPTPLUG_CERT_DOES_NEVER_EXPIRE }

Public Member Functions

 CryptPlugWrapper (const QString &name=QString::null, const QString &libName=QString::null, const QString &update=QString::null, bool active=false)
 ~CryptPlugWrapper ()
QString protocol () const
QString name () const
void setActive (bool active)
bool active () const
bool setLibName (const QString &libName)
QString libName () const
void setDisplayName (const QString &name)
QString displayName () const
void deinitialize ()
InitStatus initStatus (QString *errorMsg) const
bool hasFeature (Feature)
void freeSignatureMetaData (CryptPlug::SignatureMetaData *)
bool checkMessageSignature (char **cleartext, const char *signaturetext, bool signatureIsBinary, int signatureLen, CryptPlug::SignatureMetaData *sigmeta)
bool decryptMessage (const char *ciphertext, bool cipherIsBinary, int cipherLen, char **cleartext, const char *certificate, int *errId, char **errTxt)
bool decryptAndCheckMessage (const char *ciphertext, bool cipherIsBinary, int cipherLen, char **cleartext, const char *certificate, bool *signatureFound, CryptPlug::SignatureMetaData *sigmeta, int *errId, char **errTxt)
Kleo::KeyListJobkeyListJob (bool remote=false, bool includeSigs=false, bool validate=true) const
Kleo::EncryptJobencryptJob (bool armor=false, bool textmode=false) const
Kleo::DecryptJobdecryptJob () const
Kleo::SignJobsignJob (bool armor=false, bool textMode=false) const
Kleo::VerifyDetachedJobverifyDetachedJob (bool textmode=false) const
Kleo::VerifyOpaqueJobverifyOpaqueJob (bool textmode=false) const
Kleo::KeyGenerationJobkeyGenerationJob () const
Kleo::ImportJobimportJob () const
Kleo::ExportJobpublicKeyExportJob (bool armor=false) const
Kleo::ExportJobsecretKeyExportJob (bool armor=false, const QString &charset=QString::null) const
Kleo::DownloadJobdownloadJob (bool armor=false) const
Kleo::DeleteJobdeleteJob () const
Kleo::SignEncryptJobsignEncryptJob (bool armor=false, bool textmode=false) const
Kleo::DecryptVerifyJobdecryptVerifyJob (bool textmode=false) const
Kleo::RefreshKeysJobrefreshKeysJob () const
Kleo::SpecialJobspecialJob (const char *, const QMap< QString, QVariant > &) const
GpgME::ImportResult importCertificate (const char *data, size_t length)
CryptPlug * cryptPlug () const

Static Public Member Functions

static QString errorIdToText (int errId, bool &isPassphraseError)

Detailed Description

This class provides C++ access to the CRYPTPLUG API.

Definition at line 454 of file cryptplugwrapper.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for certmanager/lib Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Aug 2 09:53:24 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003