#include <ksslsigners.h>
Public Member Functions | |
KSSLSigners () | |
~KSSLSigners () | |
bool | addCA (KSSLCertificate &cert, bool ssl, bool email, bool code) |
bool | addCA (TQString cert, bool ssl, bool email, bool code) |
bool | regenerate () |
bool | useForSSL (KSSLCertificate &cert) |
bool | useForSSL (TQString subject) |
bool | useForEmail (KSSLCertificate &cert) |
bool | useForEmail (TQString subject) |
bool | useForCode (KSSLCertificate &cert) |
bool | useForCode (TQString subject) |
bool | remove (KSSLCertificate &cert) |
bool | remove (TQString subject) |
TQStringList | list () |
TQString | getCert (TQString subject) |
bool | setUse (TQString subject, bool ssl, bool email, bool code) |
Detailed Description
KDE 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
KDE SSL Signer Database
Definition at line 43 of file ksslsigners.h.
Constructor & Destructor Documentation
◆ KSSLSigners()
KSSLSigners::KSSLSigners | ( | ) |
Construct a KSSLSigner object.
Definition at line 32 of file ksslsigners.cpp.
◆ ~KSSLSigners()
KSSLSigners::~KSSLSigners | ( | ) |
Destroy this KSSLSigner object.
Definition at line 38 of file ksslsigners.cpp.
Member Function Documentation
◆ addCA() [1/2]
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.cpp.
◆ addCA() [2/2]
bool KSSLSigners::addCA | ( | TQString | 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.cpp.
◆ getCert()
TQString KSSLSigners::getCert | ( | TQString | subject | ) |
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.cpp.
◆ list()
TQStringList 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.cpp.
◆ regenerate()
bool KSSLSigners::regenerate | ( | ) |
Regenerate the signer-root file from the user's settings.
- Returns
- true on success
Definition at line 74 of file ksslsigners.cpp.
◆ remove() [1/2]
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.cpp.
◆ remove() [2/2]
bool KSSLSigners::remove | ( | TQString | 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.cpp.
◆ setUse()
bool KSSLSigners::setUse | ( | TQString | 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.cpp.
◆ useForCode() [1/2]
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.cpp.
◆ useForCode() [2/2]
bool KSSLSigners::useForCode | ( | TQString | 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.cpp.
◆ useForEmail() [1/2]
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.cpp.
◆ useForEmail() [2/2]
bool KSSLSigners::useForEmail | ( | TQString | 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.cpp.
◆ useForSSL() [1/2]
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.cpp.
◆ useForSSL() [2/2]
bool KSSLSigners::useForSSL | ( | TQString | 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.cpp.
The documentation for this class was generated from the following files: