\section{KSSLPeer\-Info Class Reference}
\label{classKSSLPeerInfo}\index{KSSLPeerInfo@{KSSLPeerInfo}}
{\bf KDE} SSL Peer Data {\bf KDE} SSL Peer Data.  


{\tt \#include $<$ksslpeerinfo.h$>$}

Collaboration diagram for KSSLPeer\-Info:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=61pt]{classKSSLPeerInfo__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf $\sim$KSSLPeer\-Info} ()
\item 
{\bf KSSLCertificate} \& {\bf get\-Peer\-Certificate} ()
\item 
bool {\bf cert\-Matches\-Address} ()
\item 
bool {\bf cn\-Matches\-Address} ({\bf QString} cn)
\item 
void {\bf set\-Peer\-Host} ({\bf QString} host=QString::null)
\item 
void {\bf reset} ()
\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KSSLCertificate} {\bf m\_\-cert}\label{classKSSLPeerInfo_p0}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KSSL}\label{classKSSLPeerInfo_n0}

\end{CompactItemize}


\subsection{Detailed Description}
{\bf KDE} SSL Peer Data {\bf KDE} SSL Peer Data. 

This class contains data about the peer of an SSL connection.

\begin{Desc}
\item[Author:]George Staikos $<${\tt staikos@kde.org}$>$ \end{Desc}
\begin{Desc}
\item[See also:]{\bf KSSL}{\rm (p.\,\pageref{classKSSL})} \end{Desc}




Definition at line 42 of file ksslpeerinfo.h.

\subsection{Constructor \& Destructor Documentation}
\index{KSSLPeerInfo@{KSSLPeer\-Info}!~KSSLPeerInfo@{$\sim$KSSLPeerInfo}}
\index{~KSSLPeerInfo@{$\sim$KSSLPeerInfo}!KSSLPeerInfo@{KSSLPeer\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSSLPeer\-Info::$\sim${\bf KSSLPeer\-Info} ()}\label{classKSSLPeerInfo_a0}


Destroy this instance. 



Definition at line 52 of file ksslpeerinfo.cc.

\subsection{Member Function Documentation}
\index{KSSLPeerInfo@{KSSLPeer\-Info}!getPeerCertificate@{getPeerCertificate}}
\index{getPeerCertificate@{getPeerCertificate}!KSSLPeerInfo@{KSSLPeer\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KSSLCertificate} \& KSSLPeer\-Info::get\-Peer\-Certificate ()}\label{classKSSLPeerInfo_a1}


Get a reference to the peer's certificate. 

\begin{Desc}
\item[Returns:]a reference to the peer's certificate \end{Desc}
\begin{Desc}
\item[See also:]{\bf KSSLCertificate}{\rm (p.\,\pageref{classKSSLCertificate})}\end{Desc}


Definition at line 56 of file ksslpeerinfo.cc.\index{KSSLPeerInfo@{KSSLPeer\-Info}!certMatchesAddress@{certMatchesAddress}}
\index{certMatchesAddress@{certMatchesAddress}!KSSLPeerInfo@{KSSLPeer\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KSSLPeer\-Info::cert\-Matches\-Address ()}\label{classKSSLPeerInfo_a2}


Determine if the peer's certificate matches the address set with {\bf set\-Peer\-Host()}{\rm (p.\,\pageref{classKSSLPeerInfo_a4})}. 

Note that this is a match in the \char`\"{}https\char`\"{} sense, taking into account, for instance, wildcards.

\begin{Desc}
\item[Returns:]true if it matches \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Peer\-Host}{\rm (p.\,\pageref{classKSSLPeerInfo_a4})}\end{Desc}


Definition at line 72 of file ksslpeerinfo.cc.

References cn\-Matches\-Address(), KSSLCertificate::get\-Subject(), QString\-List::split(), and KSSLCertificate::subj\-Alt\-Names().\index{KSSLPeerInfo@{KSSLPeer\-Info}!cnMatchesAddress@{cnMatchesAddress}}
\index{cnMatchesAddress@{cnMatchesAddress}!KSSLPeerInfo@{KSSLPeer\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KSSLPeer\-Info::cn\-Matches\-Address ({\bf QString} {\em cn})}\label{classKSSLPeerInfo_a3}


Determine if the given \char`\"{}common name\char`\"{} matches the address set with {\bf set\-Peer\-Host()}{\rm (p.\,\pageref{classKSSLPeerInfo_a4})}. 

Note that this is a match in the \char`\"{}https\char`\"{} sense, taking into account, for instance, wildcards.

\begin{Desc}
\item[Returns:]true if it matches \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Peer\-Host}{\rm (p.\,\pageref{classKSSLPeerInfo_a4})}\end{Desc}


Definition at line 89 of file ksslpeerinfo.cc.

References QString::contains(), endl(), QString::ends\-With(), QReg\-Exp::exact\-Match(), QString::is\-Empty(), kd\-Debug(), QString::length(), QReg\-Exp::set\-Pattern(), QString\-List::split(), and QString::truncate().

Referenced by cert\-Matches\-Address().\index{KSSLPeerInfo@{KSSLPeer\-Info}!setPeerHost@{setPeerHost}}
\index{setPeerHost@{setPeerHost}!KSSLPeerInfo@{KSSLPeer\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSSLPeer\-Info::set\-Peer\-Host ({\bf QString} {\em host} = {\tt QString::null})}\label{classKSSLPeerInfo_a4}


Set the host that we are connected to. 

This is generally set by {\bf KSSL}{\rm (p.\,\pageref{classKSSL})}, and should be exactly what the user -thinks- he is connected to. (for instance, the host name in the url)

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em host}]the hostname\end{description}
\end{Desc}


Definition at line 60 of file ksslpeerinfo.cc.

References QString::from\-Latin1(), QString::lower(), QString::strip\-White\-Space(), and QString::truncate().\index{KSSLPeerInfo@{KSSLPeer\-Info}!reset@{reset}}
\index{reset@{reset}!KSSLPeerInfo@{KSSLPeer\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSSLPeer\-Info::reset ()}\label{classKSSLPeerInfo_a5}


Clear out the host name. 



Definition at line 156 of file ksslpeerinfo.cc.

Referenced by KSSL::initialize().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
ksslpeerinfo.h\item 
ksslpeerinfo.cc\end{CompactItemize}
