Definition at line 30 of file NgapS3Credentials.h.
◆ NgapS3Credentials() [1/2]
NgapS3Credentials::NgapS3Credentials |
( |
| ) |
|
|
inline |
◆ NgapS3Credentials() [2/2]
NgapS3Credentials::NgapS3Credentials |
( |
const std::string & |
credentials_endpoint, |
|
|
long |
refresh_margin |
|
) |
| |
|
inline |
◆ add()
void AccessCredentials::add |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
|
inherited |
◆ expires()
time_t NgapS3Credentials::expires |
( |
| ) |
const |
|
inline |
◆ get()
string NgapS3Credentials::get |
( |
const std::string & |
key | ) |
|
|
virtual |
Retrieves the value of key
- Parameters
-
key | The key value to retrieve |
- Returns
- The value of the key, empty string if the key does not exist.
Reimplemented from AccessCredentials.
Definition at line 56 of file NgapS3Credentials.cc.
◆ get_temporary_credentials()
void NgapS3Credentials::get_temporary_credentials |
( |
| ) |
|
This code assumes that the credentials needed to authenticate the retrieval of the S3 credentials will be handled by the curl call via the ~/.netrc file of the BES user.
- Parameters
-
distribution_api_endpoint | The URL of the cumulus distribution api s3credentials endpoint |
Definition at line 69 of file NgapS3Credentials.cc.
◆ is_s3_cred()
bool NgapS3Credentials::is_s3_cred |
( |
| ) |
|
|
virtual |
◆ name() [1/2]
std::string AccessCredentials::name |
( |
| ) |
|
|
inlineinherited |
◆ name() [2/2]
void AccessCredentials::name |
( |
const std::string & |
name | ) |
|
|
inlineinherited |
◆ needs_refresh()
bool NgapS3Credentials::needs_refresh |
( |
| ) |
const |
|
inline |
◆ to_json()
string AccessCredentials::to_json |
( |
| ) |
|
|
inherited |
◆ AWS_SESSION_TOKEN
const string NgapS3Credentials::AWS_SESSION_TOKEN = "aws_session_token" |
|
static |
◆ AWS_TOKEN_EXPIRATION
const string NgapS3Credentials::AWS_TOKEN_EXPIRATION = "aws_token_expiration" |
|
static |
◆ BES_CONF_REFRESH_KEY
const string NgapS3Credentials::BES_CONF_REFRESH_KEY = "NGAP.S3.refresh.margin" |
|
static |
◆ BES_CONF_S3_ENDPOINT_KEY
const string NgapS3Credentials::BES_CONF_S3_ENDPOINT_KEY = "NGAP.S3.distribution.endpoint.url" |
|
static |
◆ BES_CONF_URL_BASE
const string NgapS3Credentials::BES_CONF_URL_BASE = "NGAP.s3.url.base" |
|
static |
◆ ID_KEY
const char * AccessCredentials::ID_KEY = "id" |
|
staticinherited |
◆ KEY_KEY
const char * AccessCredentials::KEY_KEY = "key" |
|
staticinherited |
◆ REGION_KEY
const char * AccessCredentials::REGION_KEY = "region" |
|
staticinherited |
◆ URL_KEY
const char * AccessCredentials::URL_KEY = "url" |
|
staticinherited |
The documentation for this class was generated from the following files: