KNS::Security Class Reference
Inheritance diagram for KNS::Security:

Public Types | |
enum | Results { MD5_OK = 1, SIGNED_OK = 2, SIGNED_BAD = 4, TRUSTED = 8, UNKNOWN = 16, SIGNED_BAD_CLEAR = 27, BAD_PASSPHRASE = 32 } |
Public Slots | |
void | readKeys () |
void | readSecretKeys () |
void | slotCheckValidity () |
void | slotSignFile () |
Signals | |
void | validityResult (int result) |
void | fileSigned (int result) |
Public Member Functions | |
~Security () | |
void | checkValidity (const QString &fileName) |
void | signFile (const QString &fileName) |
KeyStruct | signatureKey () |
Static Public Member Functions | |
static Security *const | ref () |
Detailed Description
Definition at line 44 of file security.h.
Member Enumeration Documentation
|
Definition at line 79 of file security.h. |
Member Function Documentation
|
Verifies the integrity and the signature of a tarball file.
Definition at line 199 of file security.cpp. References slotCheckValidity(). Referenced by KNewStuffSecure::install(). |
|
Creates a signature and an md5sum file for the fileName and packs everything into a gzipped tarball.
Definition at line 263 of file security.cpp. References slotSignFile(). Referenced by KNewStuffSecure::uploadResource(). |
|
Get the key used for signing. This method is valid only if:
Definition at line 77 of file security.h. |
|
Reads the available public keys.
Definition at line 49 of file security.cpp. References QMap::clear(), QObject::connect(), and QTimer::singleShot(). |
|
Reads the available secret keys.
Definition at line 68 of file security.cpp. References QObject::connect(), and QTimer::singleShot(). |
|
Verifies the integrity and the signature of a tarball file (.
Definition at line 205 of file security.cpp. References QFile::close(), QObject::connect(), QMap::count(), QFileInfo::dirPath(), KeyStruct::id, QString::isEmpty(), KeyStruct::mail, KeyStruct::name, QFile::open(), QFile::readLine(), QFile::setName(), SIGNED_BAD, QTimer::singleShot(), QString::startsWith(), KeyStruct::trusted, and validityResult(). Referenced by checkValidity(). |
|
Creates a signature and an md5sum file for the.
Definition at line 269 of file security.cpp. References QMap::begin(), QFile::close(), QObject::connect(), QFileInfo::dirPath(), QMap::end(), fileSigned(), QFile::open(), QFile::setName(), and QTimer::singleShot(). Referenced by signFile(). |
|
Sent when the validity check is done.
Referenced by slotCheckValidity(). |
|
Sent when the signing is done.
Referenced by slotSignFile(). |
The documentation for this class was generated from the following files: