ksslcertificatehome.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _KSSLCERTIFICATEHOME_H
00022 #define _KSSLCERTIFICATEHOME_H
00023
00024 class KSSLCertificate;
00025 class KSSLPKCS12;
00026 #include <qstring.h>
00027 #include <qstringlist.h>
00028
00029
00030 class KSSLCertificateHome {
00031
00032 public:
00033
00034
00035 enum KSSLAuthAction {AuthNone, AuthSend, AuthPrompt, AuthDont};
00036
00037
00038
00039
00040 static KSSLPKCS12* getCertificateByHost(QString host, QString password, KSSLAuthAction* aa);
00041 static KSSLPKCS12* getCertificateByName(QString name, QString password);
00042 static KSSLPKCS12* getCertificateByName(QString name);
00043 static QString getDefaultCertificateName(QString host, KSSLAuthAction *aa = NULL);
00044 static QString getDefaultCertificateName(KSSLAuthAction *aa = NULL);
00045 static KSSLPKCS12* getDefaultCertificate(QString password, KSSLAuthAction *aa = NULL);
00046 static KSSLPKCS12* getDefaultCertificate(KSSLAuthAction *aa = NULL);
00047 static bool hasCertificateByName(QString name);
00048
00049
00050
00051
00052
00053 static void setDefaultCertificate(QString name, bool send = true, bool prompt = false);
00054 static void setDefaultCertificate(KSSLPKCS12 *cert, bool send = true, bool prompt = false);
00055
00056
00057
00058
00059
00060 static void setDefaultCertificate(QString name, QString host, bool send = true, bool prompt = false);
00061 static void setDefaultCertificate(KSSLPKCS12 *cert, QString host, bool send = true, bool prompt = false);
00062
00063
00064
00065
00066
00067 static bool addCertificate(QString filename, QString password, bool storePass = false);
00068 static bool addCertificate(KSSLPKCS12 *cert, QString passToStore = QString::null);
00069
00070
00071
00072
00073
00074 static bool deleteCertificate(const QString &filename, const QString &password);
00075 static bool deleteCertificate(KSSLPKCS12 *cert);
00076 static bool deleteCertificateByName(const QString &name);
00077
00078
00079
00080
00081 static QStringList getCertificateList();
00082
00083 private:
00084 class KSSLCertificateHomePrivate;
00085 KSSLCertificateHomePrivate *d;
00086 };
00087
00088 #endif
00089
This file is part of the documentation for kio Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 23 17:12:23 2004 by
doxygen 1.3.8-20040913 written by
Dimitri van Heesch, © 1997-2003