bes  Updated for version 3.20.10
AccessCredentials Class Reference
Collaboration diagram for AccessCredentials:
Collaboration graph

Public Member Functions

 AccessCredentials (const AccessCredentials &ac)=default
 
 AccessCredentials (const std::string &config_name)
 
void add (const std::string &key, const std::string &value)
 Add the key and value pair. More...
 
virtual std::string get (const std::string &key)
 
virtual bool is_s3_cred ()
 Do the URL, ID, Key amd Region items make up an S3 Credential? More...
 
std::string name ()
 
void name (const std::string &name)
 
std::string to_json ()
 

Static Public Attributes

static const char * ID_KEY = "id"
 
static const char * KEY_KEY = "key"
 
static const char * REGION_KEY = "region"
 
static const char * URL_KEY = "url"
 

Detailed Description

Definition at line 11 of file AccessCredentials.h.

Member Function Documentation

◆ add()

void AccessCredentials::add ( const std::string &  key,
const std::string &  value 
)

Add the key and value pair.

Parameters
key
value

Definition at line 85 of file AccessCredentials.cc.

◆ get()

string AccessCredentials::get ( const std::string &  key)
virtual

Retrieves the value of key

Parameters
keyThe key value to retrieve
Returns
The value of the key, empty string if the key does not exist.

Reimplemented in NgapS3Credentials.

Definition at line 70 of file AccessCredentials.cc.

◆ is_s3_cred()

bool AccessCredentials::is_s3_cred ( )
virtual

Do the URL, ID, Key amd Region items make up an S3 Credential?

Returns
True

Reimplemented in NgapS3Credentials.

Definition at line 93 of file AccessCredentials.cc.


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