Open-Transactions  0.93.0-ge03d287
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
opentxs::OTKeyring Class Reference

#include <OTKeyring.hpp>

Static Public Member Functions

static EXPORT bool StoreSecret (const OTString &strUser, const OTPassword &thePassword, const std::string &str_display)
 
static EXPORT bool RetrieveSecret (const OTString &strUser, OTPassword &thePassword, const std::string &str_display)
 
static EXPORT bool DeleteSecret (const OTString &strUser, const std::string &str_display)
 

Detailed Description

Definition at line 156 of file OTKeyring.hpp.

Member Function Documentation

bool opentxs::OTKeyring::DeleteSecret ( const OTString strUser,
const std::string &  str_display 
)
static

Definition at line 1395 of file OTKeyring.cpp.

1397 {
1398  if (OTCachedKey::It()->IsUsingSystemKeyring()) {
1399 #if defined(OT_KEYRING_WINDOWS) && defined(_WIN32)
1400  return OTKeyring::Windows_DeleteSecret(strUser, str_display);
1401 #elif defined(OT_KEYRING_MAC) && defined(__APPLE__)
1402  return OTKeyring::Mac_DeleteSecret(strUser, str_display);
1403 #elif defined(OT_KEYRING_IOS) && defined(__APPLE__)
1404  return OTKeyring::IOS_DeleteSecret(strUser, str_display);
1405 #elif defined(OT_KEYRING_GNOME)
1406  return OTKeyring::Gnome_DeleteSecret(strUser, str_display);
1407 #elif defined(OT_KEYRING_KWALLET)
1408  return OTKeyring::KWallet_DeleteSecret(strUser, str_display);
1409 #elif defined(OT_KEYRING_FLATFILE)
1410  return OTKeyring::FlatFile_DeleteSecret(strUser, str_display);
1411 #else
1412  otErr << "OTKeyring::DeleteSecret: WARNING: The OT config file says to "
1413  "use the system keyring, "
1414  "but OT wasn't compiled to support any keyrings.\n";
1415 #endif
1416  }
1417  return false;
1418 }
static EXPORT std::shared_ptr< OTCachedKey > It(OTIdentifier *pIdentifier=nullptr)
OTLOG_IMPORT OTLogStream otErr
bool opentxs::OTKeyring::RetrieveSecret ( const OTString strUser,
OTPassword thePassword,
const std::string &  str_display 
)
static

Definition at line 1365 of file OTKeyring.cpp.

1367 {
1368  if (OTCachedKey::It()->IsUsingSystemKeyring()) {
1369 #if defined(OT_KEYRING_WINDOWS) && defined(_WIN32)
1370  return OTKeyring::Windows_RetrieveSecret(strUser, thePassword,
1371  str_display);
1372 #elif defined(OT_KEYRING_MAC) && defined(__APPLE__)
1373  return OTKeyring::Mac_RetrieveSecret(strUser, thePassword, str_display);
1374 #elif defined(OT_KEYRING_IOS) && defined(__APPLE__)
1375  return OTKeyring::IOS_RetrieveSecret(strUser, thePassword, str_display);
1376 #elif defined(OT_KEYRING_GNOME)
1377  return OTKeyring::Gnome_RetrieveSecret(strUser, thePassword,
1378  str_display);
1379 #elif defined(OT_KEYRING_KWALLET)
1380  return OTKeyring::KWallet_RetrieveSecret(strUser, thePassword,
1381  str_display);
1382 #elif defined(OT_KEYRING_FLATFILE)
1383  return OTKeyring::FlatFile_RetrieveSecret(strUser, thePassword,
1384  str_display);
1385 #else
1386  otErr << "OTKeyring::RetrieveSecret: WARNING: The OT config file says "
1387  "to use the system keyring, "
1388  "but OT wasn't compiled to support any keyrings.\n";
1389 #endif
1390  }
1391  return false;
1392 }
static EXPORT std::shared_ptr< OTCachedKey > It(OTIdentifier *pIdentifier=nullptr)
OTLOG_IMPORT OTLogStream otErr
bool opentxs::OTKeyring::StoreSecret ( const OTString strUser,
const OTPassword thePassword,
const std::string &  str_display 
)
static

Definition at line 1335 of file OTKeyring.cpp.

1338 {
1339  if (OTCachedKey::It()->IsUsingSystemKeyring()) {
1340 #if defined(OT_KEYRING_WINDOWS) && defined(_WIN32)
1341  return OTKeyring::Windows_StoreSecret(strUser, thePassword,
1342  str_display);
1343 #elif defined(OT_KEYRING_MAC) && defined(__APPLE__)
1344  return OTKeyring::Mac_StoreSecret(strUser, thePassword, str_display);
1345 #elif defined(OT_KEYRING_IOS) && defined(__APPLE__)
1346  return OTKeyring::IOS_StoreSecret(strUser, thePassword, str_display);
1347 #elif defined(OT_KEYRING_GNOME)
1348  return OTKeyring::Gnome_StoreSecret(strUser, thePassword, str_display);
1349 #elif defined(OT_KEYRING_KWALLET)
1350  return OTKeyring::KWallet_StoreSecret(strUser, thePassword,
1351  str_display);
1352 #elif defined(OT_KEYRING_FLATFILE)
1353  return OTKeyring::FlatFile_StoreSecret(strUser, thePassword,
1354  str_display);
1355 #else
1356  otErr << "OTKeyring::StoreSecret: WARNING: The OT config file says to "
1357  "use the system keyring, "
1358  "but OT wasn't compiled to support any keyrings.\n";
1359 #endif
1360  }
1361  return false;
1362 }
static EXPORT std::shared_ptr< OTCachedKey > It(OTIdentifier *pIdentifier=nullptr)
OTLOG_IMPORT OTLogStream otErr

The documentation for this class was generated from the following files: