GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
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;
199 #endif // GPGFRONTEND_GPGKEYSIGNATURE_H
Definition: CoreCommonUtil.cpp:29
~GpgKeySignature()
Destroy the Gpg Key Signature object.
std::string GetPubkeyAlgo() const
Definition: GpgKeySignature.cpp:68
Definition: GpgKeySignature.h:47
bool IsExportable() const
Definition: GpgKeySignature.cpp:56
gpgme_error_t GetStatus() const
Definition: GpgKeySignature.cpp:60
boost::posix_time::ptime GetCreateTime() const
Create a time object.
Definition: GpgKeySignature.cpp:72
boost::posix_time::ptime GetExpireTime() const
Definition: GpgKeySignature.cpp:76
bool IsExpired() const
Definition: GpgKeySignature.cpp:48
std::string GetComment() const
Definition: GpgKeySignature.cpp:92
std::string GetEmail() const
Definition: GpgKeySignature.cpp:88
bool IsInvalid() const
Definition: GpgKeySignature.cpp:52
std::string GetName() const
Definition: GpgKeySignature.cpp:84
GpgKeySignature()
Construct a new Gpg Key Signature object.
std::string GetKeyID() const
Definition: GpgKeySignature.cpp:64
std::string GetUID() const
Definition: GpgKeySignature.cpp:80