KIO
ksslcertchain.h
Go to the documentation of this file.
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 _KSSLCERTCHAIN_H 00022 #define _KSSLCERTCHAIN_H 00023 00024 #include <QtCore/QList> 00025 #include <kdemacros.h> 00026 00027 class QString; 00028 class KSSL; 00029 class KSSLCertChainPrivate; 00030 class QStringList; 00031 00032 #include <ksslcertificate.h> 00033 00043 class KIO_EXPORT KSSLCertChain { 00044 friend class KSSL; 00045 friend class KSSLPeerInfo; 00046 00047 public: 00051 KSSLCertChain(); 00052 00056 ~KSSLCertChain(); 00057 00063 bool isValid(); 00064 00073 KSSLCertChain *replicate(); 00074 00079 void setChain(void *stack_of_x509); 00080 00087 void setChain(const QList<KSSLCertificate *>& chain); 00088 00095 void setCertChain(const QStringList& chain); 00096 00104 QList<KSSLCertificate *> getChain() const; 00105 00111 int depth(); 00112 00117 void *rawChain(); 00118 00119 private: 00120 KSSLCertChainPrivate* const d; 00121 void *_chain; 00122 }; 00123 00124 00125 #endif 00126
KDE 4.6 API Reference