Microsoft Azure Storage Client Library for C++
7.5.0
The Microsoft Azure Storage Client Library for C++ is a library for working with the Azure Storage Services in C++.
|
Represents a set of credentials used to authenticate access to a Windows Azure storage account. More...
Classes | |
class | account_key_credential |
class | bearer_token_credential |
class | sas_credential |
Public Member Functions | |
storage_credentials () | |
Initializes a new instance of the azure::storage::storage_credentials class. More... | |
storage_credentials (utility::string_t account_name, const utility::string_t &account_key) | |
Initializes a new instance of the azure::storage::storage_credentials class with the specified account name and key value. More... | |
storage_credentials (utility::string_t account_name, std::vector< uint8_t > account_key) | |
Initializes a new instance of the azure::storage::storage_credentials class with the specified account name and key value. More... | |
storage_credentials (utility::string_t sas_token) | |
Initializes a new instance of the azure::storage::storage_credentials class with the specified shared access signature token. More... | |
storage_credentials (utility::string_t account_name, sas_credential sas_token) | |
Initializes a new instance of the azure::storage::storage_credentials class with the specified account name and shared access signature token. More... | |
template<class T , typename std::enable_if< std::is_same< typename std::decay< T >::type, bearer_token_credential >::value >::type * = nullptr> | |
storage_credentials (T &&token) | |
Initializes a new instance of the azure::storage::storage_credentials class with the specified bearer token. More... | |
template<class T , typename std::enable_if< std::is_same< typename std::decay< T >::type, bearer_token_credential >::value >::type * = nullptr> | |
storage_credentials (utility::string_t account_name, T &&token) | |
Initializes a new instance of the azure::storage::storage_credentials class with the specified account name and bearer token. More... | |
template<class T , typename std::enable_if< std::is_same< typename std::decay< T >::type, storage_credentials >::value >::type * = nullptr> | |
storage_credentials (T &&other) | |
Initializes a new instance of the azure::storage::storage_credentials class based on an existing instance. More... | |
template<class T , typename std::enable_if< std::is_same< typename std::decay< T >::type, storage_credentials >::value >::type * = nullptr> | |
storage_credentials & | operator= (T &&other) |
Returns a reference to an azure::storage::storage_credentials object. More... | |
web::http::uri | transform_uri (const web::http::uri &resource_uri) const |
Transforms a resource URI into a shared access signature URI, by appending a shared access token. More... | |
const utility::string_t & | sas_token () const |
Gets the shared access signature token associated with the credentials. More... | |
const utility::string_t & | account_name () const |
Gets the associated storage account name for the credentials. More... | |
const std::vector< uint8_t > & | account_key () const |
Returns the key for the credentials. More... | |
void | set_account_key (const utility::string_t &account_key) |
Sets the account key for the credentials. More... | |
void | set_account_key (std::vector< uint8_t > account_key) |
Sets the account key for the credentials. More... | |
utility::string_t | bearer_token () const |
Gets the bearer token for the credentials. More... | |
void | set_bearer_token (utility::string_t bearer_token) |
Sets the bearer token for the credentials. More... | |
bool | is_anonymous () const |
Indicates whether the credentials are for anonymous access. More... | |
bool | is_sas () const |
Indicates whether the credentials are a shared access signature token. More... | |
bool | is_shared_key () const |
Indicates whether the credentials are a shared key. More... | |
bool | is_bearer_token () const |
Indicates whether the credentials are a bearer token. More... | |
bool | is_account_key () const |
Indicates whether the credentials are an account key. More... | |
Represents a set of credentials used to authenticate access to a Windows Azure storage account.
|
inline |
Initializes a new instance of the azure::storage::storage_credentials class.
|
inline |
Initializes a new instance of the azure::storage::storage_credentials class with the specified account name and key value.
account_name | A string containing the name of the storage account. |
account_key | A string containing the Base64-encoded account access key. |
|
inline |
Initializes a new instance of the azure::storage::storage_credentials class with the specified account name and key value.
account_name | A string containing the name of the storage account. |
account_key | An array of bytes that represent the account access key. |
|
inlineexplicit |
Initializes a new instance of the azure::storage::storage_credentials class with the specified shared access signature token.
sas_token | A string containing the shared access signature token. |
|
inline |
Initializes a new instance of the azure::storage::storage_credentials class with the specified account name and shared access signature token.
account_name | A string containing the name of the storage account. |
sas_token | An azure::storage::sas_credential containing shared access signature token. |
|
inlineexplicit |
Initializes a new instance of the azure::storage::storage_credentials class with the specified bearer token.
token | A azure::storage::storage_credentials::bearer_token_credential class containing bearer token. |
|
inline |
Initializes a new instance of the azure::storage::storage_credentials class with the specified account name and bearer token.
account_name | A string containing the name of the storage account. |
token | A azure::storage::storage_credentials::bearer_token_credential class containing bearer token. |
|
inline |
Initializes a new instance of the azure::storage::storage_credentials class based on an existing instance.
other | An existing azure::storage::storage_credentials object. |
|
inline |
Returns the key for the credentials.
|
inline |
Gets the associated storage account name for the credentials.
|
inline |
Gets the bearer token for the credentials.
|
inline |
Indicates whether the credentials are an account key.
true
if the credentials are an account key; otherwise false
.
|
inline |
Indicates whether the credentials are for anonymous access.
true
if the credentials are for anonymous access; otherwise, false
.
|
inline |
Indicates whether the credentials are a bearer token.
true
if the credentials are a bearer token; otherwise false
.
|
inline |
Indicates whether the credentials are a shared access signature token.
true
if the credentials are a shared access signature token; otherwise, false
.
|
inline |
Indicates whether the credentials are a shared key.
true
if the credentials are a shared key; otherwise, false
.
|
inline |
Returns a reference to an azure::storage::storage_credentials object.
other | An existing azure::storage::storage_credentials object to use to set properties. |
|
inline |
Gets the shared access signature token associated with the credentials.
|
inline |
Sets the account key for the credentials.
account_key | A string containing the Base64-encoded account access key. |
|
inline |
Sets the account key for the credentials.
account_key | An array of bytes that represent the account access key. |
|
inline |
Sets the bearer token for the credentials.
bearer_token | A string that contains bearer token. |
|
inline |
Transforms a resource URI into a shared access signature URI, by appending a shared access token.
resource_uri | A web::http::uri object that represents the resource URI to be transformed. |