bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
Public Member Functions | |
void | add (const std::string &url, AccessCredentials *ac) |
void | clear () |
AccessCredentials * | get (const std::shared_ptr< http::url > &url) |
AccessCredentials * | get (const std::string &url) |
bool | hasNgapS3Credentials () const |
size_t | size () const |
Static Public Member Functions | |
static CredentialsManager * | theCM () |
Returns the singleton instance of the CredentialsManager. | |
Static Public Attributes | |
static const char * | ENV_ACCESS_KEY = "CMAC_ACCESS_KEY" |
static const char * | ENV_ID_KEY = "CMAC_ID" |
static const char * | ENV_REGION_KEY = "CMAC_REGION" |
static const char * | ENV_URL_KEY = "CMAC_URL" |
static CredentialsManager * | theMngr = nullptr |
Our singleton instance. | |
static const char * | USE_ENV_CREDS_KEY_VALUE = "ENV_CREDS" |
Friends | |
class | CredentialsManagerTest |
class | CurlUtilsTest |
Definition at line 42 of file CredentialsManager.h.
http::CredentialsManager::~CredentialsManager | ( | ) |
Definition at line 114 of file CredentialsManager.cc.
void http::CredentialsManager::add | ( | const std::string & | key, |
AccessCredentials * | ac ) |
Add the passed set of AccessCredentials to the collection, filed under key.
key | The key (URL) to associated with these credentials |
ac | The credentials to use for access. |
Definition at line 135 of file CredentialsManager.cc.
|
inline |
Definition at line 77 of file CredentialsManager.h.
AccessCredentials * http::CredentialsManager::get | ( | const std::shared_ptr< http::url > & | url | ) |
Retrieve the AccessCredentials, if any, associated with the passed url (key).
url | The URL for which AccessCredentials are desired |
Definition at line 152 of file CredentialsManager.cc.
AccessCredentials * http::CredentialsManager::get | ( | const std::string & | url | ) |
Definition at line 175 of file CredentialsManager.cc.
|
inline |
Definition at line 89 of file CredentialsManager.h.
|
inline |
Definition at line 85 of file CredentialsManager.h.
|
static |
Returns the singleton instance of the CredentialsManager.
Definition at line 101 of file CredentialsManager.cc.
|
friend |
Definition at line 65 of file CredentialsManager.h.
|
friend |
Definition at line 66 of file CredentialsManager.h.
|
static |
Definition at line 45 of file CredentialsManager.h.
|
static |
Definition at line 44 of file CredentialsManager.h.
|
static |
Definition at line 46 of file CredentialsManager.h.
|
static |
Definition at line 47 of file CredentialsManager.h.
|
static |
Our singleton instance.
Definition at line 69 of file CredentialsManager.h.
|
static |
Definition at line 48 of file CredentialsManager.h.