\section{KSSLKey\-Gen Class Reference}
\label{classKSSLKeyGen}\index{KSSLKeyGen@{KSSLKeyGen}}
{\bf KDE} Key Generation dialog {\bf KDE} Key Generation Dialog.  


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

Inheritance diagram for KSSLKey\-Gen:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=57pt]{classKSSLKeyGen__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KSSLKey\-Gen:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=57pt]{classKSSLKeyGen__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KSSLKey\-Gen} ({\bf QWidget} $\ast$parent=0L, const char $\ast$name=0L, bool modal=false)
\item 
virtual {\bf $\sim$KSSLKey\-Gen} ()
\item 
int {\bf generate\-CSR} (const {\bf QString} \&name, const {\bf QString} \&pass, int bits, int e=0x10001)
\item 
void {\bf set\-Key\-Size} (int idx)
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf QString\-List} {\bf supported\-Key\-Sizes} ()
\end{CompactItemize}


\subsection{Detailed Description}
{\bf KDE} Key Generation dialog {\bf KDE} Key Generation Dialog. 

This is used to display a key generation dialog for cases such as the html $<$keygen$>$ tag. It also does the certificate signing request generation.

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




Definition at line 44 of file ksslkeygen.h.

\subsection{Constructor \& Destructor Documentation}
\index{KSSLKeyGen@{KSSLKey\-Gen}!KSSLKeyGen@{KSSLKeyGen}}
\index{KSSLKeyGen@{KSSLKeyGen}!KSSLKeyGen@{KSSLKey\-Gen}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSSLKey\-Gen::KSSLKey\-Gen ({\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, const char $\ast$ {\em name} = {\tt 0L}, bool {\em modal} = {\tt false})}\label{classKSSLKeyGen_a0}


Construct a keygen dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]the parent widget \item[{\em name}]the internal name of this instance \item[{\em modal}]true if the dialog should be modal\end{description}
\end{Desc}


Definition at line 42 of file ksslkeygen.cc.

References QWizard::add\-Page(), QWizard::finish\-Button(), QWizard::set\-Finish\-Enabled(), and QWizard::set\-Help\-Enabled().\index{KSSLKeyGen@{KSSLKey\-Gen}!~KSSLKeyGen@{$\sim$KSSLKeyGen}}
\index{~KSSLKeyGen@{$\sim$KSSLKeyGen}!KSSLKeyGen@{KSSLKey\-Gen}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSSLKey\-Gen::$\sim${\bf KSSLKey\-Gen} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKSSLKeyGen_a1}


Destroy this dialog. 



Definition at line 63 of file ksslkeygen.cc.

\subsection{Member Function Documentation}
\index{KSSLKeyGen@{KSSLKey\-Gen}!supportedKeySizes@{supportedKeySizes}}
\index{supportedKeySizes@{supportedKeySizes}!KSSLKeyGen@{KSSLKey\-Gen}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KSSLKey\-Gen::supported\-Key\-Sizes ()\hspace{0.3cm}{\tt  [static]}}\label{classKSSLKeyGen_e0}


List the supported key sizes. 

\begin{Desc}
\item[Returns:]the supported key sizes\end{Desc}


Definition at line 206 of file ksslkeygen.cc.\index{KSSLKeyGen@{KSSLKey\-Gen}!generateCSR@{generateCSR}}
\index{generateCSR@{generateCSR}!KSSLKeyGen@{KSSLKey\-Gen}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KSSLKey\-Gen::generate\-CSR (const {\bf QString} \& {\em name}, const {\bf QString} \& {\em pass}, int {\em bits}, int {\em e} = {\tt 0x10001})}\label{classKSSLKeyGen_a2}


Generate the certificate signing request. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]the name for the certificate \item[{\em pass}]the password for the request \item[{\em bits}]the bitsize for the key \item[{\em e}]the value of the \char`\"{}e\char`\"{} parameter in RSA \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]0 on success, non-zero on error\end{Desc}


Definition at line 122 of file ksslkeygen.cc.

References KStandard\-Dirs::add\-Resource\-Type(), KGlobal::dirs(), KTemp\-File::fstream(), QString::local8Bit(), and KStandard\-Dirs::save\-Location().\index{KSSLKeyGen@{KSSLKey\-Gen}!setKeySize@{setKeySize}}
\index{setKeySize@{setKeySize}!KSSLKeyGen@{KSSLKey\-Gen}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSSLKey\-Gen::set\-Key\-Size (int {\em idx})\hspace{0.3cm}{\tt  [inline]}}\label{classKSSLKeyGen_a3}


Set the key size. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em idx}]an index into {\bf supported\-Key\-Sizes()}{\rm (p.\,\pageref{classKSSLKeyGen_e0})}\end{description}
\end{Desc}


Definition at line 80 of file ksslkeygen.h.

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