#include <AWSCredentials.h>
|
| | AWSCredentials () |
| |
| | AWSCredentials (const Aws::String &accessKeyId, const Aws::String &secretKey) |
| |
| | AWSCredentials (const Aws::String &accessKeyId, const Aws::String &secretKey, const Aws::String &sessionToken) |
| |
| | AWSCredentials (const Aws::String &accessKeyId, const Aws::String &secretKey, const Aws::String &sessionToken, Aws::Utils::DateTime expiration) |
| |
| | AWSCredentials (const Aws::String &accessKeyId, const Aws::String &secretKey, const Aws::String &sessionToken, Aws::Utils::DateTime expiration, const Aws::String &accountId) |
| |
| | AWSCredentials (const AWSCredentials &other)=default |
| |
| | AWSCredentials (AWSCredentials &&other) noexcept=default |
| |
| | ~AWSCredentials () |
| |
| AWSCredentials & | operator= (const AWSCredentials &other)=default |
| |
| AWSCredentials & | operator= (AWSCredentials &&other) noexcept=default |
| |
| bool | operator== (const AWSCredentials &other) const |
| |
| bool | operator!= (const AWSCredentials &other) const |
| |
| bool | IsEmpty () const |
| |
| bool | IsExpired () const |
| |
| bool | ExpiresSoon (int64_t millisecondThreshold=5000) const |
| |
| bool | IsExpiredOrEmpty () const |
| |
| const Aws::String & | GetAWSAccessKeyId () const |
| |
| const Aws::String & | GetAWSSecretKey () const |
| |
| const Aws::String & | GetSessionToken () const |
| |
| Aws::Utils::DateTime | GetExpiration () const |
| |
| const Aws::String & | GetAccountId () const |
| |
| void | SetAWSAccessKeyId (const Aws::String &accessKeyId) |
| |
| void | SetAWSSecretKey (const Aws::String &secretKey) |
| |
| void | SetSessionToken (const Aws::String &sessionToken) |
| |
| void | SetAccountId (const Aws::String &accountId) |
| |
| void | SetAWSAccessKeyId (const char *accessKeyId) |
| |
| void | SetAWSSecretKey (const char *secretKey) |
| |
| void | SetSessionToken (const char *sessionToken) |
| |
| void | SetAccountId (const char *accountId) |
| |
| void | SetExpiration (Aws::Utils::DateTime expiration) |
| |
| CredentialsResolutionContext | GetContext () |
| |
| void | AddUserAgentFeature (Aws::Client::UserAgentFeature feature) |
| |
Simple data object around aws credentials
Definition at line 49 of file AWSCredentials.h.
◆ AWSCredentials() [1/7]
| Aws::Auth::AWSCredentials::AWSCredentials |
( |
| ) |
|
|
inline |
Initializes an empty credentials set. Empty credentials are not expired by default. Credentials expire only if an expiration date is explicitly set on them.
Definition at line 57 of file AWSCredentials.h.
◆ AWSCredentials() [2/7]
Initializes object with accessKeyId, secretKey. SessionToken defaults to empty string. Expiration date is set to "never expire".
Definition at line 66 of file AWSCredentials.h.
◆ AWSCredentials() [3/7]
Initializes object with accessKeyId, secretKey, and sessionToken. Expiration date is set to "never expire".
Definition at line 75 of file AWSCredentials.h.
◆ AWSCredentials() [4/7]
Initializes object with accessKeyId, secretKey, sessionToken and expiration date.
Definition at line 83 of file AWSCredentials.h.
◆ AWSCredentials() [5/7]
Initializes object with accessKeyId, secretKey, sessionToken, expiration date and account Id.
Definition at line 91 of file AWSCredentials.h.
◆ AWSCredentials() [6/7]
| Aws::Auth::AWSCredentials::AWSCredentials |
( |
const AWSCredentials & | other | ) |
|
|
default |
◆ AWSCredentials() [7/7]
◆ ~AWSCredentials()
| Aws::Auth::AWSCredentials::~AWSCredentials |
( |
| ) |
|
|
inline |
Destructor that securely clears sensitive credential data from memory.
Definition at line 115 of file AWSCredentials.h.
◆ AddUserAgentFeature()
Adds a user agent feature used during credentials resolution to the credentials context. This is useful to track which credentials provider was used.
Definition at line 294 of file AWSCredentials.h.
◆ ExpiresSoon()
| bool Aws::Auth::AWSCredentials::ExpiresSoon |
( |
int64_t | millisecondThreshold = 5000 | ) |
const |
|
inline |
Checks to see if the credentials will expire in a threshold of time
- Parameters
-
| millisecondThreshold | the milliseconds of threshold we will check for expiry. |
- Returns
- true if the credentials will expire before the threshold
Definition at line 167 of file AWSCredentials.h.
◆ GetAccountId()
| const Aws::String & Aws::Auth::AWSCredentials::GetAccountId |
( |
| ) |
const |
|
inline |
◆ GetAWSAccessKeyId()
| const Aws::String & Aws::Auth::AWSCredentials::GetAWSAccessKeyId |
( |
| ) |
const |
|
inline |
◆ GetAWSSecretKey()
| const Aws::String & Aws::Auth::AWSCredentials::GetAWSSecretKey |
( |
| ) |
const |
|
inline |
◆ GetContext()
Gets credential resolution context. this is information about the call such as what credentials provider was used to to resolve the credentials
Definition at line 288 of file AWSCredentials.h.
◆ GetExpiration()
◆ GetSessionToken()
| const Aws::String & Aws::Auth::AWSCredentials::GetSessionToken |
( |
| ) |
const |
|
inline |
◆ IsEmpty()
| bool Aws::Auth::AWSCredentials::IsEmpty |
( |
| ) |
const |
|
inline |
If credentials haven't been initialized or been initialized to empty values. Expiration date does not affect the result of this function.
Definition at line 157 of file AWSCredentials.h.
◆ IsExpired()
| bool Aws::Auth::AWSCredentials::IsExpired |
( |
| ) |
const |
|
inline |
◆ IsExpiredOrEmpty()
| bool Aws::Auth::AWSCredentials::IsExpiredOrEmpty |
( |
| ) |
const |
|
inline |
◆ operator!=()
| bool Aws::Auth::AWSCredentials::operator!= |
( |
const AWSCredentials & | other | ) |
const |
|
inline |
◆ operator=() [1/2]
Move assignment operator.
◆ operator=() [2/2]
Copy assignment operator.
◆ operator==()
| bool Aws::Auth::AWSCredentials::operator== |
( |
const AWSCredentials & | other | ) |
const |
|
inline |
◆ SetAccountId() [1/2]
| void Aws::Auth::AWSCredentials::SetAccountId |
( |
const Aws::String & | accountId | ) |
|
|
inline |
Sets the underlying account id. Copies from parameter accountId
Definition at line 238 of file AWSCredentials.h.
◆ SetAccountId() [2/2]
| void Aws::Auth::AWSCredentials::SetAccountId |
( |
const char * | accountId | ) |
|
|
inline |
Sets the underlying account id. Copies from parameter accountId
Definition at line 271 of file AWSCredentials.h.
◆ SetAWSAccessKeyId() [1/2]
| void Aws::Auth::AWSCredentials::SetAWSAccessKeyId |
( |
const Aws::String & | accessKeyId | ) |
|
|
inline |
Sets the underlying access key credential. Copies from parameter accessKeyId.
Definition at line 214 of file AWSCredentials.h.
◆ SetAWSAccessKeyId() [2/2]
| void Aws::Auth::AWSCredentials::SetAWSAccessKeyId |
( |
const char * | accessKeyId | ) |
|
|
inline |
Sets the underlying access key credential. Copies from parameter accessKeyId.
Definition at line 247 of file AWSCredentials.h.
◆ SetAWSSecretKey() [1/2]
| void Aws::Auth::AWSCredentials::SetAWSSecretKey |
( |
const Aws::String & | secretKey | ) |
|
|
inline |
Sets the underlying secret key credential. Copies from parameter secretKey
Definition at line 222 of file AWSCredentials.h.
◆ SetAWSSecretKey() [2/2]
| void Aws::Auth::AWSCredentials::SetAWSSecretKey |
( |
const char * | secretKey | ) |
|
|
inline |
Sets the underlying secret key credential. Copies from parameter secretKey
Definition at line 255 of file AWSCredentials.h.
◆ SetExpiration()
◆ SetSessionToken() [1/2]
| void Aws::Auth::AWSCredentials::SetSessionToken |
( |
const Aws::String & | sessionToken | ) |
|
|
inline |
Sets the underlying session token. Copies from parameter sessionToken
Definition at line 230 of file AWSCredentials.h.
◆ SetSessionToken() [2/2]
| void Aws::Auth::AWSCredentials::SetSessionToken |
( |
const char * | sessionToken | ) |
|
|
inline |
Sets the underlying secret key credential. Copies from parameter secretKey
Definition at line 263 of file AWSCredentials.h.
The documentation for this class was generated from the following file: