• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KIO

Public Member Functions

KSSLSigners Class Reference

KDE SSL Signer Database. More...

#include <ksslsigners.h>

List of all members.

Public Member Functions

 KSSLSigners ()
 ~KSSLSigners ()
bool addCA (const QString &cert, bool ssl, bool email, bool code) const
bool addCA (KSSLCertificate &cert, bool ssl, bool email, bool code) const
QString getCert (const QString &subject)
QStringList list ()
bool regenerate ()
bool remove (const QString &subject)
bool remove (KSSLCertificate &cert)
bool setUse (const QString &subject, bool ssl, bool email, bool code)
bool useForCode (const QString &subject) const
bool useForCode (KSSLCertificate &cert) const
bool useForEmail (KSSLCertificate &cert) const
bool useForEmail (const QString &subject) const
bool useForSSL (KSSLCertificate &cert) const
bool useForSSL (const QString &subject) const

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.

Author:
George Staikos <staikos@kde.org>
See also:
KSSL, KSSLCertificate KDE SSL Signer Database

Definition at line 42 of file ksslsigners.h.


Constructor & Destructor Documentation

KSSLSigners::KSSLSigners ( )

Construct a KSSLSigner object.

Definition at line 31 of file ksslsigners.cpp.

KSSLSigners::~KSSLSigners ( )

Destroy this KSSLSigner object.

Definition at line 35 of file ksslsigners.cpp.


Member Function Documentation

bool KSSLSigners::addCA ( KSSLCertificate &  cert,
bool  ssl,
bool  email,
bool  code 
) const

Add a signer to the database.

Parameters:
certthe signer's certificate
sslallow it to sign for SSL
emailallow it to sign for S/MIME
codeallow it to sign for code signing
Returns:
true on success

Definition at line 38 of file ksslsigners.cpp.

bool KSSLSigners::addCA ( const QString &  cert,
bool  ssl,
bool  email,
bool  code 
) const

Add a signer to the database.

Parameters:
certthe signer's certificate in base64 form
sslallow it to sign for SSL
emailallow it to sign for S/MIME
codeallow it to sign for code signing
Returns:
true on success

Definition at line 46 of file ksslsigners.cpp.

QString KSSLSigners::getCert ( const QString &  subject)

Get a signer certificate from the database.

Parameters:
subjectthe subject of the certificate desired
Returns:
the base64 encoded certificate

Definition at line 111 of file ksslsigners.cpp.

QStringList KSSLSigners::list ( )

List the signers in the database.

Returns:
the list of subjects in the database
See also:
getCert

Definition at line 105 of file ksslsigners.cpp.

bool KSSLSigners::regenerate ( )

Regenerate the signer-root file from the user's settings.

Returns:
true on success

Definition at line 55 of file ksslsigners.cpp.

bool KSSLSigners::remove ( KSSLCertificate &  cert)

Remove a certificate signer from the database.

Parameters:
certthe certificate to remove
Returns:
true on success

Definition at line 94 of file ksslsigners.cpp.

bool KSSLSigners::remove ( const QString &  subject)

Remove a certificate signer from the database.

Parameters:
subjectthe subject of the certificate to remove
Returns:
true on success

Definition at line 99 of file ksslsigners.cpp.

bool KSSLSigners::setUse ( const QString &  subject,
bool  ssl,
bool  email,
bool  code 
)

Set the use of a particular entry in the certificate signer database.

Parameters:
subjectthe subject of the certificate in question
sslallow this for SSL certificate signing
emailallow this for S/MIME certificate signing
codeallow this for code certificate signing
Returns:
true on success

Definition at line 117 of file ksslsigners.cpp.

bool KSSLSigners::useForCode ( const QString &  subject) const

Determine if a certificate can be used for code certificate signing.

Parameters:
subjectthe certificate subject
Returns:
true if it can be used for code

Definition at line 88 of file ksslsigners.cpp.

bool KSSLSigners::useForCode ( KSSLCertificate &  cert) const

Determine if a certificate can be used for code certificate signing.

Parameters:
certthe certificate
Returns:
true if it can be used for code

Definition at line 83 of file ksslsigners.cpp.

bool KSSLSigners::useForEmail ( const QString &  subject) const

Determine if a certificate can be used for S/MIME certificate signing.

Parameters:
subjectthe certificate subject
Returns:
true if it can be used for S/MIME

Definition at line 77 of file ksslsigners.cpp.

bool KSSLSigners::useForEmail ( KSSLCertificate &  cert) const

Determine if a certificate can be used for S/MIME certificate signing.

Parameters:
certthe certificate
Returns:
true if it can be used for S/MIME

Definition at line 72 of file ksslsigners.cpp.

bool KSSLSigners::useForSSL ( KSSLCertificate &  cert) const

Determine if a certificate can be used for SSL certificate signing.

Parameters:
certthe certificate
Returns:
true if it can be used for SSL

Definition at line 61 of file ksslsigners.cpp.

bool KSSLSigners::useForSSL ( const QString &  subject) const

Determine if a certificate can be used for SSL certificate signing.

Parameters:
subjectthe certificate subject
Returns:
true if it can be used for SSL

Definition at line 66 of file ksslsigners.cpp.


The documentation for this class was generated from the following files:
  • ksslsigners.h
  • ksslsigners.cpp

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal