Definition at line 40 of file CredentialsManager.h.
◆ ~CredentialsManager()
CredentialsManager::~CredentialsManager |
( |
| ) |
|
◆ add()
Add the passed set of AccessCredentials to the collection, filed under key.
- Parameters
-
key | The key (URL) to associated with these credentials |
ac | The credentials to use for access. |
Definition at line 156 of file CredentialsManager.cc.
◆ clear()
void CredentialsManager::clear |
( |
| ) |
|
|
inline |
◆ get()
◆ hasNgapS3Credentials()
bool CredentialsManager::hasNgapS3Credentials |
( |
| ) |
|
|
inline |
◆ load_credentials()
void CredentialsManager::load_credentials |
( |
| ) |
|
This method loads credentials from a special file identified in the bes.conf chain by the key "CredentialsManager.config". If the key is missing from the bes.conf chain the method will return and no credentials will be loaded.
The credentials are stored as a map of maps where the key is the human readable name of the credentials. The map of maps is accomplished by the following formatting:
cloudydap=url:https://s3.amazonaws.com/cloudydap/ cloudydap+=id:------------------------— cloudydap+=key:************************** cloudydap+=region:us-east-1 cloudydap+=bucket:cloudydap
cloudyopendap=url:https://s3.amazonaws.com/cloudyopendap/ cloudyopendap+=id:------------------------— cloudyopendap+=key:************************** cloudyopendap+=region:us-east-1 cloudyopendap+=bucket:cloudyopendap
cname_02=url:https://ssotherone.org/login cname_02+=id:------------------------— cname_02+=key:************************** cname_02+=region:us-east-1 cname_02+=bucket:cloudyotherdap
- Exceptions
-
BESInternalError | if the file specified by the "CredentialsManager.config" key is missing. |
Definition at line 279 of file CredentialsManager.cc.
◆ size()
unsigned int CredentialsManager::size |
( |
| ) |
|
|
inline |
◆ theCM()
◆ ENV_ACCESS_KEY
const char * CredentialsManager::ENV_ACCESS_KEY = "CMAC_ACCESS_KEY" |
|
static |
◆ ENV_BUCKET_KEY
const char * CredentialsManager::ENV_BUCKET_KEY = "CMAC_BUCKET" |
|
static |
◆ ENV_ID_KEY
const char * CredentialsManager::ENV_ID_KEY = "CMAC_ID" |
|
static |
◆ ENV_REGION_KEY
const char * CredentialsManager::ENV_REGION_KEY = "CMAC_REGION" |
|
static |
◆ ENV_URL_KEY
const char * CredentialsManager::ENV_URL_KEY = "CMAC_URL" |
|
static |
◆ theMngr
◆ USE_ENV_CREDS_KEY_VALUE
const char * CredentialsManager::USE_ENV_CREDS_KEY_VALUE = "ENV_CREDS" |
|
static |
The documentation for this class was generated from the following files: