GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
29 #ifndef GPGFRONTEND_GPGSIGNATURE_H
30 #define GPGFRONTEND_GPGSIGNATURE_H
32 #include <boost/date_time/gregorian/greg_date.hpp>
33 #include <boost/date_time/posix_time/conversion.hpp>
35 #include "core/GpgConstants.h"
50 [[nodiscard]] gpgme_validity_t GetValidity()
const;
57 [[nodiscard]] gpgme_error_t GetStatus()
const;
64 [[nodiscard]] gpgme_error_t GetSummary()
const;
71 [[nodiscard]] std::string GetPubkeyAlgo()
const;
78 [[nodiscard]] std::string GetHashAlgo()
const;
85 [[nodiscard]] boost::posix_time::ptime GetCreateTime()
const;
92 [[nodiscard]] boost::posix_time::ptime GetExpireTime()
const;
99 [[nodiscard]] std::string GetFingerprint()
const;
147 using KeySignatrueRefHandler =
148 std::unique_ptr<
struct _gpgme_signature,
149 std::function<void(gpgme_signature_t)>>;
151 KeySignatrueRefHandler signature_ref_ = nullptr;
155 #endif // GPGFRONTEND_GPGSIGNATURE_H
std::string GetFingerprint() const
Definition: GpgSignature.cpp:116
Definition: CoreCommonUtil.cpp:29
gpgme_validity_t GetValidity() const
Definition: GpgSignature.cpp:53
Definition: GpgSignature.h:43
boost::posix_time::ptime GetExpireTime() const
Definition: GpgSignature.cpp:107
~GpgSignature()
Destroy the Gpg Signature object.
gpgme_error_t GetStatus() const
Definition: GpgSignature.cpp:62
boost::posix_time::ptime GetCreateTime() const
Create a time object.
Definition: GpgSignature.cpp:98
gpgme_error_t GetSummary() const
Definition: GpgSignature.cpp:71
std::string GetPubkeyAlgo() const
Definition: GpgSignature.cpp:80
GpgSignature()
Construct a new Gpg Signature object.
std::string GetHashAlgo() const
Definition: GpgSignature.cpp:89