KIO
ksslpeerinfo.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _KSSLPEERINFO_H
00022 #define _KSSLPEERINFO_H
00023
00024 class KSSL;
00025
00026 #include <QtCore/QBool>
00027 #include <QtCore/QStringList>
00028 #include <ksslcertificate.h>
00029
00030 class KSSLPeerInfoPrivate;
00031
00041 class KIO_EXPORT KSSLPeerInfo {
00042 friend class KSSL;
00043 public:
00047 ~KSSLPeerInfo();
00048
00055 KSSLCertificate& getPeerCertificate();
00056
00065 bool certMatchesAddress();
00066
00075 bool cnMatchesAddress(QString cn);
00076
00084 void setPeerHost(const QString &host = QString());
00085
00089 const QString& peerHost() const;
00090
00094 void reset();
00095
00096 protected:
00097 KSSLPeerInfo();
00098
00099 KSSLCertificate m_cert;
00100
00101 private:
00102 KSSLPeerInfoPrivate* const d;
00103 };
00104
00105
00106 #endif
00107