29 #ifndef GPGFRONTEND_GPGKEYSIGNATURE_H
30 #define GPGFRONTEND_GPGKEYSIGNATURE_H
32 #include <boost/date_time.hpp>
35 #include "core/GpgConstants.h"
55 [[nodiscard]]
bool IsRevoked()
const;
63 [[nodiscard]]
bool IsExpired()
const;
71 [[nodiscard]]
bool IsInvalid()
const;
79 [[nodiscard]]
bool IsExportable()
const;
86 [[nodiscard]] gpgme_error_t GetStatus()
const;
93 [[nodiscard]] std::string GetKeyID()
const;
100 [[nodiscard]] std::string GetPubkeyAlgo()
const;
107 [[nodiscard]] boost::posix_time::ptime GetCreateTime()
const;
114 [[nodiscard]] boost::posix_time::ptime GetExpireTime()
const;
121 [[nodiscard]] std::string GetUID()
const;
128 [[nodiscard]] std::string GetName()
const;
135 [[nodiscard]] std::string GetEmail()
const;
142 [[nodiscard]] std::string GetComment()
const;
190 using KeySignatrueRefHandler =
191 std::unique_ptr<struct _gpgme_key_sig,
192 std::function<
void(gpgme_key_sig_t)>>;
194 KeySignatrueRefHandler signature_ref_ =
nullptr;
Definition: GpgKeySignature.h:47
GpgKeySignature()
Construct a new Gpg Key Signature object.
GpgKeySignature(GpgKeySignature &&) noexcept
Construct a new Gpg Key Signature object.
~GpgKeySignature()
Destroy the Gpg Key Signature object.
Definition: CoreCommonUtil.cpp:29