29 #ifndef GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H
30 #define GPGFRONTEND_ZH_CN_TS_GPGKEYGETTER_H
35 #include "core/GpgContext.h"
36 #include "core/GpgFunctionObject.h"
37 #include "core/GpgModel.h"
62 GpgKey GetKey(
const std::string&
id,
bool use_cache =
true);
70 KeyListPtr GetKeys(
const KeyIdArgsListPtr& ids);
78 GpgKey GetPubkey(
const std::string&
id,
bool use_cache =
true);
85 KeyLinkListPtr FetchKey();
99 KeyListPtr GetKeysCopy(
const KeyListPtr& keys);
107 KeyLinkListPtr GetKeysCopy(
const KeyLinkListPtr& keys);
141 GpgKey get_key_in_cache(
const std::string&
id);
Definition: GpgContext.h:66
Definition: GpgKeyGetter.h:46
std::mutex ctx_mutex_
shared mutex for the keys cache
Definition: GpgKeyGetter.h:121
std::map< std::string, GpgKey > keys_cache_
cache the keys with key id
Definition: GpgKeyGetter.h:127
std::mutex keys_cache_mutex_
shared mutex for the keys cache
Definition: GpgKeyGetter.h:133
Definition: GpgFunctionObject.h:150
static int GetDefaultChannel()
Get the Default Channel object.
Definition: GpgFunctionObject.h:251
static GpgContext & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:172
int GetChannel() const
Get the Channel object.
Definition: GpgFunctionObject.h:258
Definition: CoreCommonUtil.cpp:31