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