KSSLSigners Class Reference
#include <ksslsigners.h>
Detailed Description
KDE SSL Signer DatabaseKDE SSL Signer Database.This class is used to manipulate the KDE SSL signer database. It communicates to the KDE SSL daemon via dcop for backend integration.
- See also:
- KSSL, KSSLCertificate
Definition at line 43 of file ksslsigners.h.
Public Member Functions | |
KSSLSigners () | |
~KSSLSigners () | |
bool | addCA (KSSLCertificate &cert, bool ssl, bool email, bool code) |
bool | addCA (QString cert, bool ssl, bool email, bool code) |
bool | regenerate () |
bool | useForSSL (KSSLCertificate &cert) |
bool | useForSSL (QString subject) |
bool | useForEmail (KSSLCertificate &cert) |
bool | useForEmail (QString subject) |
bool | useForCode (KSSLCertificate &cert) |
bool | useForCode (QString subject) |
bool | remove (KSSLCertificate &cert) |
bool | remove (QString subject) |
QStringList | list () |
QString | getCert (QString subject) |
bool | setUse (QString subject, bool ssl, bool email, bool code) |
Constructor & Destructor Documentation
KSSLSigners::KSSLSigners | ( | ) |
KSSLSigners::~KSSLSigners | ( | ) |
Member Function Documentation
bool KSSLSigners::addCA | ( | KSSLCertificate & | cert, | |
bool | ssl, | |||
bool | email, | |||
bool | code | |||
) |
Add a signer to the database.
- Parameters:
-
cert the signer's certificate ssl allow it to sign for SSL email allow it to sign for S/MIME code allow it to sign for code signing
- Returns:
- true on success
Definition at line 42 of file ksslsigners.cc.
bool KSSLSigners::addCA | ( | QString | cert, | |
bool | ssl, | |||
bool | email, | |||
bool | code | |||
) |
Add a signer to the database.
- Parameters:
-
cert the signer's certificate in base64 form ssl allow it to sign for SSL email allow it to sign for S/MIME code allow it to sign for code signing
- Returns:
- true on success
Definition at line 50 of file ksslsigners.cc.
bool KSSLSigners::regenerate | ( | ) |
Regenerate the signer-root file from the user's settings.
- Returns:
- true on success
Definition at line 74 of file ksslsigners.cc.
bool KSSLSigners::useForSSL | ( | KSSLCertificate & | cert | ) |
Determine if a certificate can be used for SSL certificate signing.
- Parameters:
-
cert the certificate
- Returns:
- true if it can be used for SSL
Definition at line 93 of file ksslsigners.cc.
bool KSSLSigners::useForSSL | ( | QString | subject | ) |
Determine if a certificate can be used for SSL certificate signing.
- Parameters:
-
subject the certificate subject
- Returns:
- true if it can be used for SSL
Definition at line 98 of file ksslsigners.cc.
bool KSSLSigners::useForEmail | ( | KSSLCertificate & | cert | ) |
Determine if a certificate can be used for S/MIME certificate signing.
- Parameters:
-
cert the certificate
- Returns:
- true if it can be used for S/MIME
Definition at line 118 of file ksslsigners.cc.
bool KSSLSigners::useForEmail | ( | QString | subject | ) |
Determine if a certificate can be used for S/MIME certificate signing.
- Parameters:
-
subject the certificate subject
- Returns:
- true if it can be used for S/MIME
Definition at line 123 of file ksslsigners.cc.
bool KSSLSigners::useForCode | ( | KSSLCertificate & | cert | ) |
Determine if a certificate can be used for code certificate signing.
- Parameters:
-
cert the certificate
- Returns:
- true if it can be used for code
Definition at line 143 of file ksslsigners.cc.
bool KSSLSigners::useForCode | ( | QString | subject | ) |
Determine if a certificate can be used for code certificate signing.
- Parameters:
-
subject the certificate subject
- Returns:
- true if it can be used for code
Definition at line 148 of file ksslsigners.cc.
bool KSSLSigners::remove | ( | KSSLCertificate & | cert | ) |
Remove a certificate signer from the database.
- Parameters:
-
cert the certificate to remove
- Returns:
- true on success
Definition at line 168 of file ksslsigners.cc.
bool KSSLSigners::remove | ( | QString | subject | ) |
Remove a certificate signer from the database.
- Parameters:
-
subject the subject of the certificate to remove
- Returns:
- true on success
Definition at line 173 of file ksslsigners.cc.
QStringList KSSLSigners::list | ( | ) |
List the signers in the database.
- Returns:
- the list of subjects in the database
- See also:
- getCert
Definition at line 193 of file ksslsigners.cc.
Get a signer certificate from the database.
- Parameters:
-
subject the subject of the certificate desired
- Returns:
- the base64 encoded certificate
Definition at line 211 of file ksslsigners.cc.
bool KSSLSigners::setUse | ( | QString | subject, | |
bool | ssl, | |||
bool | email, | |||
bool | code | |||
) |
Set the use of a particular entry in the certificate signer database.
- Parameters:
-
subject the subject of the certificate in question ssl allow this for SSL certificate signing email allow this for S/MIME certificate signing code allow this for code certificate signing
- Returns:
- true on success
Definition at line 230 of file ksslsigners.cc.
The documentation for this class was generated from the following files: