ksslx509v3.h

00001 /* This file is part of the KDE project
00002  *
00003  * Copyright (C) 2001-2003 George Staikos <staikos@kde.org>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019  */
00020  
00021 #ifndef _KSSLX509V3_H
00022 #define _KSSLX509V3_H
00023 
00024 #include <qstring.h>
00025 
00026 #include <kdelibs_export.h>
00027 
00028 // ### KDE4: fix constness of methods
00038 class KIO_EXPORT KSSLX509V3 {
00039 friend class KSSLCertificate;
00040 friend class KSSLCertificatePrivate;
00041 public:
00045     ~KSSLX509V3();
00046 
00051     bool certTypeCA();
00052 
00057     bool certTypeSSLCA();
00058 
00063     bool certTypeEmailCA();
00064 
00069     bool certTypeCodeCA();
00070 
00075     bool certTypeSSLClient();
00076 
00081     bool certTypeSSLServer();
00082 
00087     bool certTypeNSSSLServer();
00088 
00093     bool certTypeSMIME();
00094 
00099     bool certTypeSMIMEEncrypt();
00100 
00105     bool certTypeSMIMESign();
00106 
00111     bool certTypeCRLSign();
00112 
00113 private:
00114     class KSSLX509V3Private;
00115     KSSLX509V3Private *d;
00116 
00117 protected:
00118     KSSLX509V3();
00119     long flags;  // warning: this is only valid for up to 16 flags + 16 CA.
00120 };
00121 
00122 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys