6#include <azure/core/http/http.hpp>
11namespace Azure {
namespace Data {
namespace Tables {
namespace _detail {
namespace Policies {
12 class SharedKeyLitePolicy;
15namespace Azure {
namespace Data {
namespace Tables {
namespace Sas {
16 class AccountSasBuilder;
17 class TablesSasBuilder;
20namespace Azure {
namespace Data {
namespace Tables {
namespace Credentials {
36 :
AccountName{std::move(accountName)}, m_accountKey{std::move(accountKey)}
48 std::lock_guard<std::mutex> guard(m_mutex);
49 m_accountKey = std::move(accountKey);
58 friend class Azure::Data::Tables::_detail::Policies::SharedKeyLitePolicy;
62 std::string GetAccountKey()
const
64 std::lock_guard<std::mutex> guard(m_mutex);
68 mutable std::mutex m_mutex;
69 std::string m_accountKey;
73 struct ConnectionStringParts
75 std::string AccountName;
76 std::string AccountKey;
77 Azure::Core::Url TableServiceUrl;
78 std::shared_ptr<NamedKeyCredential> KeyCredential;
81 ConnectionStringParts ParseConnectionString(
const std::string& connectionString);
82 std::string GetDefaultScopeForAudience(
const std::string& audience);
A NamedKeyCredential is a credential backed by an account's name and one of its access keys.
Definition named_key_credential.hpp:26
NamedKeyCredential(std::string accountName, std::string accountKey)
Initializes a new instance of the NamedKeyCredential.
Definition named_key_credential.hpp:35
void Update(std::string accountKey)
Update the account's access key. This intended to be used when you've regenerated your account's acce...
Definition named_key_credential.hpp:46
const std::string AccountName
The name of the Account.
Definition named_key_credential.hpp:55
AccountSasBuilder is used to generate an account level Shared Access Signature (SAS) for Azure Storag...
Definition account_sas_builder.hpp:134
TableSasBuilder is used to generate a Shared Access Signature (SAS) for an Azure Storage Tables.
Definition tables_sas_builder.hpp:50