\hypertarget{GpgSubKey_8h_source}{}\doxysection{Gpg\+Sub\+Key.\+h} \label{GpgSubKey_8h_source}\index{src/core/model/GpgSubKey.h@{src/core/model/GpgSubKey.h}} \begin{DoxyCode}{0} \DoxyCodeLine{1 } \DoxyCodeLine{29 \textcolor{preprocessor}{\#ifndef GPGFRONTEND\_GPGSUBKEY\_H}} \DoxyCodeLine{30 \textcolor{preprocessor}{\#define GPGFRONTEND\_GPGSUBKEY\_H}} \DoxyCodeLine{31 } \DoxyCodeLine{32 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{33 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{34 } \DoxyCodeLine{35 \textcolor{preprocessor}{\#include "{}core/GpgConstants.h"{}}} \DoxyCodeLine{36 } \DoxyCodeLine{37 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespaceGpgFrontend}{GpgFrontend}} \{} \DoxyCodeLine{38 } \DoxyCodeLine{43 \textcolor{keyword}{class }GPGFRONTEND\_CORE\_EXPORT \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey}{GpgSubKey}} \{} \DoxyCodeLine{44 \textcolor{keyword}{public}:} \DoxyCodeLine{50 [[nodiscard]] std::string GetID() \textcolor{keyword}{const};} \DoxyCodeLine{51 } \DoxyCodeLine{57 [[nodiscard]] std::string GetFingerprint() \textcolor{keyword}{const};} \DoxyCodeLine{58 } \DoxyCodeLine{64 [[nodiscard]] std::string GetPubkeyAlgo() \textcolor{keyword}{const};} \DoxyCodeLine{65 } \DoxyCodeLine{71 [[nodiscard]] \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} GetKeyLength() \textcolor{keyword}{const};} \DoxyCodeLine{72 } \DoxyCodeLine{79 [[nodiscard]] \textcolor{keywordtype}{bool} IsHasEncryptionCapability() \textcolor{keyword}{const};} \DoxyCodeLine{80 } \DoxyCodeLine{87 [[nodiscard]] \textcolor{keywordtype}{bool} IsHasSigningCapability() \textcolor{keyword}{const};} \DoxyCodeLine{88 } \DoxyCodeLine{95 [[nodiscard]] \textcolor{keywordtype}{bool} IsHasCertificationCapability() \textcolor{keyword}{const};} \DoxyCodeLine{96 } \DoxyCodeLine{103 [[nodiscard]] \textcolor{keywordtype}{bool} IsHasAuthenticationCapability() \textcolor{keyword}{const};} \DoxyCodeLine{104 } \DoxyCodeLine{111 [[nodiscard]] \textcolor{keywordtype}{bool} IsPrivateKey() \textcolor{keyword}{const};} \DoxyCodeLine{112 } \DoxyCodeLine{119 [[nodiscard]] \textcolor{keywordtype}{bool} IsExpired() \textcolor{keyword}{const};} \DoxyCodeLine{120 } \DoxyCodeLine{127 [[nodiscard]] \textcolor{keywordtype}{bool} IsRevoked() \textcolor{keyword}{const};} \DoxyCodeLine{128 } \DoxyCodeLine{135 [[nodiscard]] \textcolor{keywordtype}{bool} IsDisabled() \textcolor{keyword}{const};} \DoxyCodeLine{136 } \DoxyCodeLine{143 [[nodiscard]] \textcolor{keywordtype}{bool} IsSecretKey() \textcolor{keyword}{const};} \DoxyCodeLine{144 } \DoxyCodeLine{151 [[nodiscard]] \textcolor{keywordtype}{bool} IsCardKey() \textcolor{keyword}{const};} \DoxyCodeLine{152 } \DoxyCodeLine{158 [[nodiscard]] boost::posix\_time::ptime GetCreateTime() \textcolor{keyword}{const};} \DoxyCodeLine{159 } \DoxyCodeLine{165 [[nodiscard]] boost::posix\_time::ptime GetExpireTime() \textcolor{keyword}{const};} \DoxyCodeLine{166 } \DoxyCodeLine{171 \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey_a59eba8a9d23429140e9a68126c9c7c5e}{GpgSubKey}}();} \DoxyCodeLine{172 } \DoxyCodeLine{178 \textcolor{keyword}{explicit} \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey}{GpgSubKey}}(gpgme\_subkey\_t subkey);} \DoxyCodeLine{179 } \DoxyCodeLine{185 \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey}{GpgSubKey}}(\mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey}{GpgSubKey}}\&\& o) \textcolor{keyword}{noexcept};} \DoxyCodeLine{186 } \DoxyCodeLine{191 \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey_a6e8df85f8c1dea7705b761e68bb949ab}{GpgSubKey}}(\textcolor{keyword}{const} \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey}{GpgSubKey}}\&) = \textcolor{keyword}{delete};} \DoxyCodeLine{192 } \DoxyCodeLine{199 \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey}{GpgSubKey}}\& operator=(\mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey}{GpgSubKey}}\&\& o) \textcolor{keyword}{noexcept};} \DoxyCodeLine{200 } \DoxyCodeLine{206 \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey}{GpgSubKey}}\& \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey_aaac65bcd0a1236a0a09ecde285a59e29}{operator=}}(\textcolor{keyword}{const} \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey}{GpgSubKey}}\&) = \textcolor{keyword}{delete};} \DoxyCodeLine{207 } \DoxyCodeLine{215 \textcolor{keywordtype}{bool} operator==(\textcolor{keyword}{const} \mbox{\hyperlink{classGpgFrontend_1_1GpgSubKey}{GpgSubKey}}\& o) \textcolor{keyword}{const};} \DoxyCodeLine{216 } \DoxyCodeLine{217 \textcolor{keyword}{private}:} \DoxyCodeLine{218 \textcolor{keyword}{using} SubkeyRefHandler =} \DoxyCodeLine{219 std::unique\_ptr<\textcolor{keyword}{struct }\_gpgme\_subkey,} \DoxyCodeLine{220 std::function>; } \DoxyCodeLine{221 } \DoxyCodeLine{222 SubkeyRefHandler \_subkey\_ref = nullptr; } \DoxyCodeLine{223 \};} \DoxyCodeLine{224 } \DoxyCodeLine{225 \} \textcolor{comment}{// namespace GpgFrontend}} \DoxyCodeLine{226 } \DoxyCodeLine{227 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// GPGFRONTEND\_GPGSUBKEY\_H}} \end{DoxyCode}