libkpgp

Kpgp::Block Class Reference

List of all members.

Detailed Description

Definition at line 93 of file kpgpblock.h.


Public Member Functions

 Block (const QCString &str=QCString())
 ~Block ()
QCString text () const
void setText (const QCString &str)
void setProcessedText (const QCString &str)
int status () const
void setStatus (const int status)
BlockType type ()
bool isEncrypted () const
bool isSigned () const
bool goodSignature () const
QString signatureUserId () const
void setSignatureUserId (const QString &userId)
QCString signatureKeyId () const
void setSignatureKeyId (const QCString &keyId)
QCString signatureDate () const
void setSignatureDate (const QCString &date)
const QStrList encryptedFor () const
QString requiredKey () const
void setRequiredKey (const QCString &keyId)
QString requiredUserId () const
void setRequiredUserId (const QString &userId)
QCString error () const
void setError (const QCString &str)
void reset ()
bool decrypt ()
bool verify ()
Kpgp::Result clearsign (const QCString &keyId, const QCString &charset=QCString())
Kpgp::Result encrypt (const QStringList &receivers, const QCString &keyId, const bool sign, const QCString &charset=QCString())

Member Function Documentation

bool Kpgp::Block::isEncrypted (  )  const [inline]

is the message encrypted ?

Definition at line 318 of file kpgpblock.h.

bool Kpgp::Block::isSigned (  )  const [inline]

is the message signed by someone

Definition at line 326 of file kpgpblock.h.

bool Kpgp::Block::goodSignature (  )  const [inline]

is the signature good ?

Definition at line 334 of file kpgpblock.h.

QString Kpgp::Block::signatureUserId (  )  const [inline]

returns the primary user id of the signer or a null string if we don't have the public key of the signer

Definition at line 252 of file kpgpblock.h.

QCString Kpgp::Block::signatureKeyId (  )  const [inline]

keyID of signer

Definition at line 264 of file kpgpblock.h.

QCString Kpgp::Block::signatureDate (  )  const [inline]

date of the signature WARNING: Will most likely be changed to QDateTime

Definition at line 276 of file kpgpblock.h.

const QStrList Kpgp::Block::encryptedFor (  )  const [inline]

the persons who can decrypt the message

Definition at line 312 of file kpgpblock.h.

QString Kpgp::Block::requiredKey (  )  const [inline]

shows the secret key which is needed to decrypt the message

Definition at line 288 of file kpgpblock.h.

void Kpgp::Block::reset (  ) 

Resets all information about this OpenPGP block.

Definition at line 40 of file kpgpblock.cpp.

bool Kpgp::Block::decrypt (  ) 

decrypts this OpenPGP block if the passphrase is good.

returns false otherwise

Definition at line 92 of file kpgpblock.cpp.

bool Kpgp::Block::verify (  ) 

tries to verify this (clearsigned) OpenPGP block

Definition at line 103 of file kpgpblock.cpp.

Kpgp::Result Kpgp::Block::clearsign ( const QCString &  keyId,
const QCString &  charset = QCString() 
)

clearsigns this OpenPGP block with the key corresponding to the given key id.

The charset is needed to display the text correctly. Returns false if there was an unresolvable error or if signing was canceled true if everything is o.k.

Definition at line 114 of file kpgpblock.cpp.

Kpgp::Result Kpgp::Block::encrypt ( const QStringList &  receivers,
const QCString &  keyId,
const bool  sign,
const QCString &  charset = QCString() 
)

encrypts this OpenPGP block for a list of persons.

if sign is true then the message is signed with the key corresponding to the given key id. Returns false if there was an unresolvable error or if encryption was canceled true if everything is o.k.

Definition at line 125 of file kpgpblock.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys