\section{KSSLPKCS7 Class Reference}
\label{classKSSLPKCS7}\index{KSSLPKCS7@{KSSLPKCS7}}
{\bf KDE} PKCS\#7 Certificate {\bf KDE} PKCS\#7 Certificate.  


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

Collaboration diagram for KSSLPKCS7:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=187pt]{classKSSLPKCS7__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf $\sim$KSSLPKCS7} ()
\item 
{\bf QString} {\bf name} ()
\item 
{\bf QString} {\bf to\-String} ()
\item 
void {\bf set\-Cert} (PKCS7 $\ast$c)
\item 
{\bf KSSLCertificate} $\ast$ {\bf get\-Certificate} ()
\item 
{\bf KSSLCert\-Chain} $\ast$ {\bf get\-Chain} ()
\item 
bool {\bf to\-File} ({\bf QString} filename)
\item 
{\bf KSSLCertificate::KSSLValidation} {\bf validate} ()
\item 
{\bf KSSLCertificate::KSSLValidation} {\bf revalidate} ()
\item 
bool {\bf is\-Valid} ()
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf KSSLPKCS7} $\ast$ {\bf from\-String} ({\bf QString} base64)
\item 
static {\bf KSSLPKCS7} $\ast$ {\bf load\-Cert\-File} ({\bf QString} filename)
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KSSL}\label{classKSSLPKCS7_n0}

\end{CompactItemize}


\subsection{Detailed Description}
{\bf KDE} PKCS\#7 Certificate {\bf KDE} PKCS\#7 Certificate. 

This class represents a PKCS\#7 certificate

\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 60 of file ksslpkcs7.h.

\subsection{Constructor \& Destructor Documentation}
\index{KSSLPKCS7@{KSSLPKCS7}!~KSSLPKCS7@{$\sim$KSSLPKCS7}}
\index{~KSSLPKCS7@{$\sim$KSSLPKCS7}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSSLPKCS7::$\sim${\bf KSSLPKCS7} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKSSLPKCS7_a0}


Destroy this PKCS\#7 certificate. 



Definition at line 55 of file ksslpkcs7.cc.

References KOpen\-SSLProxy::PKCS7\_\-free().

\subsection{Member Function Documentation}
\index{KSSLPKCS7@{KSSLPKCS7}!name@{name}}
\index{name@{name}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KSSLPKCS7::name ()}\label{classKSSLPKCS7_a1}


The name of this certificate. 

This can be used to refer to the certificate instead of passing the object itself. \begin{Desc}
\item[Returns:]the name of the certificate\end{Desc}


Definition at line 191 of file ksslpkcs7.cc.

References KSSLCertificate::get\-Subject().\index{KSSLPKCS7@{KSSLPKCS7}!fromString@{fromString}}
\index{fromString@{fromString}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KSSLPKCS7} $\ast$ KSSLPKCS7::from\-String ({\bf QString} {\em base64})\hspace{0.3cm}{\tt  [static]}}\label{classKSSLPKCS7_e0}


Create a KSSLPKCS7 object from a Base64 in a {\bf QString}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em base64}]the base64 representation of the certificate \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]a PKCS\#7 object, or NULL on failure\end{Desc}


Definition at line 63 of file ksslpkcs7.cc.

References KCodecs::base64Decode(), KTemp\-File::close(), KTemp\-File::file(), QString::is\-Empty(), QString::latin1(), load\-Cert\-File(), KTemp\-File::name(), and KTemp\-File::unlink().\index{KSSLPKCS7@{KSSLPKCS7}!loadCertFile@{loadCertFile}}
\index{loadCertFile@{loadCertFile}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KSSLPKCS7} $\ast$ KSSLPKCS7::load\-Cert\-File ({\bf QString} {\em filename})\hspace{0.3cm}{\tt  [static]}}\label{classKSSLPKCS7_e1}


Create a KSSLPKCS7 object by reading a PKCS\#7 file. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em filename}]the filename to read the certificate from \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]a PKCS\#7 object, or NULL on failure\end{Desc}


Definition at line 81 of file ksslpkcs7.cc.

References QFile::handle(), QFile::open(), and set\-Cert().

Referenced by from\-String().\index{KSSLPKCS7@{KSSLPKCS7}!toString@{toString}}
\index{toString@{toString}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KSSLPKCS7::to\-String ()}\label{classKSSLPKCS7_a2}


Convert to a Base64 string. 

\begin{Desc}
\item[Returns:]the PKCS\#7 object in base64 form\end{Desc}


Definition at line 125 of file ksslpkcs7.cc.

References KCodecs::base64Encode(), and KOpen\-SSLProxy::i2d\_\-PKCS7().\index{KSSLPKCS7@{KSSLPKCS7}!setCert@{setCert}}
\index{setCert@{setCert}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSSLPKCS7::set\-Cert (PKCS7 $\ast$ {\em c})}\label{classKSSLPKCS7_a3}


Raw set the PKCS7 object. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em c}]the PKCS7 object \end{description}
\end{Desc}


Definition at line 105 of file ksslpkcs7.cc.

Referenced by load\-Cert\-File().\index{KSSLPKCS7@{KSSLPKCS7}!getCertificate@{getCertificate}}
\index{getCertificate@{getCertificate}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KSSLCertificate} $\ast$ KSSLPKCS7::get\-Certificate ()}\label{classKSSLPKCS7_a4}


Get the bottom level X.509 certificate. 

\begin{Desc}
\item[Returns:]the certificate, or NULL on failure \end{Desc}
\begin{Desc}
\item[See also:]{\bf KSSLCertificate}{\rm (p.\,\pageref{classKSSLCertificate})}\end{Desc}


Definition at line 115 of file ksslpkcs7.cc.\index{KSSLPKCS7@{KSSLPKCS7}!getChain@{getChain}}
\index{getChain@{getChain}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KSSLCert\-Chain} $\ast$ KSSLPKCS7::get\-Chain ()}\label{classKSSLPKCS7_a5}


Get the certificate chain. 

\begin{Desc}
\item[Returns:]the certificate chain \end{Desc}
\begin{Desc}
\item[See also:]{\bf KSSLCert\-Chain}{\rm (p.\,\pageref{classKSSLCertChain})}\end{Desc}


Definition at line 120 of file ksslpkcs7.cc.\index{KSSLPKCS7@{KSSLPKCS7}!toFile@{toFile}}
\index{toFile@{toFile}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KSSLPKCS7::to\-File ({\bf QString} {\em filename})}\label{classKSSLPKCS7_a6}


Write the PKCS\#7 to a file in raw mode. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em filename}]the filename to write \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true on success\end{Desc}


Definition at line 146 of file ksslpkcs7.cc.

References QFile::handle(), KOpen\-SSLProxy::i2d\_\-PKCS7\_\-fp(), QString::latin1(), and QFile::open().\index{KSSLPKCS7@{KSSLPKCS7}!validate@{validate}}
\index{validate@{validate}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KSSLCertificate::KSSLValidation} KSSLPKCS7::validate ()}\label{classKSSLPKCS7_a7}


Check the chain to make sure it's valid. 

\begin{Desc}
\item[Returns:]the result of the validation procedure\end{Desc}


Definition at line 169 of file ksslpkcs7.cc.

References KSSLCertificate::validate().

Referenced by is\-Valid().\index{KSSLPKCS7@{KSSLPKCS7}!revalidate@{revalidate}}
\index{revalidate@{revalidate}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KSSLCertificate::KSSLValidation} KSSLPKCS7::revalidate ()}\label{classKSSLPKCS7_a8}


Check the chain to make sure it's valid. 

Ignore any cached validation result. \begin{Desc}
\item[Returns:]the result of the validation \end{Desc}
\begin{Desc}
\item[See also:]{\bf KSSLCertificate}{\rm (p.\,\pageref{classKSSLCertificate})}\end{Desc}


Definition at line 179 of file ksslpkcs7.cc.

References KSSLCertificate::revalidate().\index{KSSLPKCS7@{KSSLPKCS7}!isValid@{isValid}}
\index{isValid@{isValid}!KSSLPKCS7@{KSSLPKCS7}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KSSLPKCS7::is\-Valid ()}\label{classKSSLPKCS7_a9}


Return true if the chain is valid. 



Definition at line 186 of file ksslpkcs7.cc.

References validate().

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