GpgFrontend-Doxygen/docs/latex/classGpgFrontend_1_1KeyPackageOperator.tex

176 lines
9.1 KiB
TeX
Raw Normal View History

2022-05-08 19:59:26 +00:00
\hypertarget{classGpgFrontend_1_1KeyPackageOperator}{}\doxysection{Gpg\+Frontend\+::Key\+Package\+Operator Class Reference}
\label{classGpgFrontend_1_1KeyPackageOperator}\index{GpgFrontend::KeyPackageOperator@{GpgFrontend::KeyPackageOperator}}
give the possibility to import or export a key package
{\ttfamily \#include $<$Key\+Package\+Operator.\+h$>$}
Collaboration diagram for Gpg\+Frontend\+::Key\+Package\+Operator\+:
2022-05-08 22:01:23 +00:00
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=265pt]{classGpgFrontend_1_1KeyPackageOperator__coll__graph}
\end{center}
\end{figure}
2022-05-08 19:59:26 +00:00
\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item
static bool \mbox{\hyperlink{classGpgFrontend_1_1KeyPackageOperator_a6d9cf022a1e0cf54c061495f59c1b4b9}{Generate\+Passphrase}} (const std\+::filesystem\+::path \&phrase\+\_\+path, std\+::string \&phrase)
\begin{DoxyCompactList}\small\item\em generate passphrase for key package and save it to file \end{DoxyCompactList}\item
static std\+::string \mbox{\hyperlink{classGpgFrontend_1_1KeyPackageOperator_ae90b362a32b6f6014cda1dc232bd3f0e}{Generate\+Key\+Package\+Name}} ()
\begin{DoxyCompactList}\small\item\em generate the name of the key package \end{DoxyCompactList}\item
static bool \mbox{\hyperlink{classGpgFrontend_1_1KeyPackageOperator_ade02f022e405e98377343c4667c206e9}{Generate\+Key\+Package}} (const std\+::filesystem\+::path \&key\+\_\+package\+\_\+path, const std\+::string \&key\+\_\+package\+\_\+name, Key\+Id\+Args\+List\+Ptr \&key\+\_\+ids, std\+::string \&phrase, bool secret)
\begin{DoxyCompactList}\small\item\em generate key package \end{DoxyCompactList}\item
static bool \mbox{\hyperlink{classGpgFrontend_1_1KeyPackageOperator_a89538b180a42eb7d6ae53583fe10ee07}{Import\+Key\+Package}} (const std\+::filesystem\+::path \&key\+\_\+package\+\_\+path, const std\+::filesystem\+::path \&phrase\+\_\+path, \mbox{\hyperlink{classGpgFrontend_1_1GpgImportInformation}{Gpg\+Frontend\+::\+Gpg\+Import\+Information}} \&import\+\_\+info)
\begin{DoxyCompactList}\small\item\em import key package \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Private Member Functions}
\begin{DoxyCompactItemize}
\item
static std\+::string \mbox{\hyperlink{classGpgFrontend_1_1KeyPackageOperator_a825d987dacd8a99d9d87729e1861a152}{generate\+\_\+key\+\_\+package\+\_\+name}} ()
\begin{DoxyCompactList}\small\item\em generate key package name \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection{Detailed Description}
give the possibility to import or export a key package
\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classGpgFrontend_1_1KeyPackageOperator_a825d987dacd8a99d9d87729e1861a152}\label{classGpgFrontend_1_1KeyPackageOperator_a825d987dacd8a99d9d87729e1861a152}}
\index{GpgFrontend::KeyPackageOperator@{GpgFrontend::KeyPackageOperator}!generate\_key\_package\_name@{generate\_key\_package\_name}}
\index{generate\_key\_package\_name@{generate\_key\_package\_name}!GpgFrontend::KeyPackageOperator@{GpgFrontend::KeyPackageOperator}}
\doxysubsubsection{\texorpdfstring{generate\_key\_package\_name()}{generate\_key\_package\_name()}}
{\footnotesize\ttfamily static std\+::string Gpg\+Frontend\+::\+Key\+Package\+Operator\+::generate\+\_\+key\+\_\+package\+\_\+name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}, {\ttfamily [private]}}
generate key package name
\begin{DoxyReturn}{Returns}
std\+::string key package name
\end{DoxyReturn}
2022-05-08 22:01:23 +00:00
$<$ Random device
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
$<$ Mersenne twister
2022-05-08 19:59:26 +00:00
2022-05-08 22:01:23 +00:00
Referenced by Generate\+Key\+Package\+Name().
2022-05-08 19:59:26 +00:00
\mbox{\Hypertarget{classGpgFrontend_1_1KeyPackageOperator_ade02f022e405e98377343c4667c206e9}\label{classGpgFrontend_1_1KeyPackageOperator_ade02f022e405e98377343c4667c206e9}}
\index{GpgFrontend::KeyPackageOperator@{GpgFrontend::KeyPackageOperator}!GenerateKeyPackage@{GenerateKeyPackage}}
\index{GenerateKeyPackage@{GenerateKeyPackage}!GpgFrontend::KeyPackageOperator@{GpgFrontend::KeyPackageOperator}}
\doxysubsubsection{\texorpdfstring{GenerateKeyPackage()}{GenerateKeyPackage()}}
{\footnotesize\ttfamily bool Gpg\+Frontend\+::\+Key\+Package\+Operator\+::\+Generate\+Key\+Package (\begin{DoxyParamCaption}\item[{const std\+::filesystem\+::path \&}]{key\+\_\+package\+\_\+path, }\item[{const std\+::string \&}]{key\+\_\+package\+\_\+name, }\item[{Key\+Id\+Args\+List\+Ptr \&}]{key\+\_\+ids, }\item[{std\+::string \&}]{phrase, }\item[{bool}]{secret }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}
generate key package
\begin{DoxyParams}{Parameters}
{\em key\+\_\+package\+\_\+path} & path to key package \\
\hline
{\em key\+\_\+package\+\_\+name} & name of the key package \\
\hline
{\em key\+\_\+ids} & key ids to export \\
\hline
{\em phrase} & passphrase to encrypt key package \\
\hline
{\em secret} & true if secret key should be exported \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if key package was generated
false if key package was not generated
\end{DoxyReturn}
2022-05-08 22:01:23 +00:00
References Gpg\+Frontend\+::\+Singleton\+Function\+Object$<$ Gpg\+Key\+Import\+Exporter $>$\+::\+Get\+Instance(), and Gpg\+Frontend\+::\+File\+Operator\+::\+Write\+File\+Std().
2022-05-08 19:59:26 +00:00
\mbox{\Hypertarget{classGpgFrontend_1_1KeyPackageOperator_ae90b362a32b6f6014cda1dc232bd3f0e}\label{classGpgFrontend_1_1KeyPackageOperator_ae90b362a32b6f6014cda1dc232bd3f0e}}
\index{GpgFrontend::KeyPackageOperator@{GpgFrontend::KeyPackageOperator}!GenerateKeyPackageName@{GenerateKeyPackageName}}
\index{GenerateKeyPackageName@{GenerateKeyPackageName}!GpgFrontend::KeyPackageOperator@{GpgFrontend::KeyPackageOperator}}
\doxysubsubsection{\texorpdfstring{GenerateKeyPackageName()}{GenerateKeyPackageName()}}
{\footnotesize\ttfamily std\+::string Gpg\+Frontend\+::\+Key\+Package\+Operator\+::\+Generate\+Key\+Package\+Name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}
generate the name of the key package
\begin{DoxyReturn}{Returns}
std\+::string name of the key package
\end{DoxyReturn}
2022-05-08 22:01:23 +00:00
References generate\+\_\+key\+\_\+package\+\_\+name().
2022-05-08 19:59:26 +00:00
Referenced by Gpg\+Frontend\+::\+UI\+::\+Export\+Key\+Package\+Dialog\+::\+Export\+Key\+Package\+Dialog().
2022-05-08 19:59:26 +00:00
\mbox{\Hypertarget{classGpgFrontend_1_1KeyPackageOperator_a6d9cf022a1e0cf54c061495f59c1b4b9}\label{classGpgFrontend_1_1KeyPackageOperator_a6d9cf022a1e0cf54c061495f59c1b4b9}}
\index{GpgFrontend::KeyPackageOperator@{GpgFrontend::KeyPackageOperator}!GeneratePassphrase@{GeneratePassphrase}}
\index{GeneratePassphrase@{GeneratePassphrase}!GpgFrontend::KeyPackageOperator@{GpgFrontend::KeyPackageOperator}}
\doxysubsubsection{\texorpdfstring{GeneratePassphrase()}{GeneratePassphrase()}}
{\footnotesize\ttfamily bool Gpg\+Frontend\+::\+Key\+Package\+Operator\+::\+Generate\+Passphrase (\begin{DoxyParamCaption}\item[{const std\+::filesystem\+::path \&}]{phrase\+\_\+path, }\item[{std\+::string \&}]{phrase }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}
generate passphrase for key package and save it to file
\begin{DoxyParams}{Parameters}
{\em phrase\+\_\+path} & path to passphrase file \\
\hline
{\em phrase} & passphrase generated \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if passphrase was generated and saved
false if passphrase was not generated and saved
\end{DoxyReturn}
2022-05-08 22:01:23 +00:00
References Gpg\+Frontend\+::\+Passphrase\+Generator\+::\+Generate(), Gpg\+Frontend\+::\+Singleton\+Function\+Object$<$ Passphrase\+Generator $>$\+::\+Get\+Instance(), and Gpg\+Frontend\+::\+File\+Operator\+::\+Write\+File\+Std().
2022-05-08 19:59:26 +00:00
\mbox{\Hypertarget{classGpgFrontend_1_1KeyPackageOperator_a89538b180a42eb7d6ae53583fe10ee07}\label{classGpgFrontend_1_1KeyPackageOperator_a89538b180a42eb7d6ae53583fe10ee07}}
\index{GpgFrontend::KeyPackageOperator@{GpgFrontend::KeyPackageOperator}!ImportKeyPackage@{ImportKeyPackage}}
\index{ImportKeyPackage@{ImportKeyPackage}!GpgFrontend::KeyPackageOperator@{GpgFrontend::KeyPackageOperator}}
\doxysubsubsection{\texorpdfstring{ImportKeyPackage()}{ImportKeyPackage()}}
{\footnotesize\ttfamily bool Gpg\+Frontend\+::\+Key\+Package\+Operator\+::\+Import\+Key\+Package (\begin{DoxyParamCaption}\item[{const std\+::filesystem\+::path \&}]{key\+\_\+package\+\_\+path, }\item[{const std\+::filesystem\+::path \&}]{phrase\+\_\+path, }\item[{\mbox{\hyperlink{classGpgFrontend_1_1GpgImportInformation}{Gpg\+Frontend\+::\+Gpg\+Import\+Information}} \&}]{import\+\_\+info }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}
import key package
\begin{DoxyParams}{Parameters}
{\em key\+\_\+package\+\_\+path} & path to key package \\
\hline
{\em phrase\+\_\+path} & path to passphrase file \\
\hline
{\em import\+\_\+info} & import info \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if key package was imported
false if key package was not imported
\end{DoxyReturn}
2022-05-08 22:01:23 +00:00
References Gpg\+Frontend\+::\+Singleton\+Function\+Object$<$ Gpg\+Key\+Import\+Exporter $>$\+::\+Get\+Instance(), Gpg\+Frontend\+::\+Gpg\+Key\+Import\+Exporter\+::\+Import\+Key(), and Gpg\+Frontend\+::\+File\+Operator\+::\+Read\+File\+Std().
2022-05-08 19:59:26 +00:00
The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item
src/core/function/Key\+Package\+Operator.\+h\item
src/core/function/Key\+Package\+Operator.\+cpp\end{DoxyCompactItemize}