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 checksum to verify the integrity of data during transport. More...
Public Member Functions | |
checksum () | |
Initializes a new instance of the azure::storage::checksum class without specifying any checksum method. More... | |
checksum (utility::string_t md5) | |
Initializes a new instance of the azure::storage::checksum class with MD5 hash value. More... | |
checksum (const utility::char_t *md5) | |
Initializes a new instance of the azure::storage::checksum class with MD5 hash value. More... | |
checksum (uint64_t crc64) | |
Initializes a new instance of the azure::storage::checksum class with CRC64 error-detecting code. More... | |
checksum (checksum_none_t type) | |
Initializes a new instance of the azure::storage::checksum class without specifying any checksum method. More... | |
checksum (checksum_md5_t type, utility::string_t val) | |
Initializes a new instance of the azure::storage::checksum class with MD5 hash value. More... | |
checksum (checksum_sha256_t type, utility::string_t val) | |
Initializes a new instance of the azure::storage::checksum class with SHA-256 hash value. More... | |
checksum (checksum_crc64_t type, uint64_t val) | |
Initializes a new instance of the azure::storage::checksum class with CRC64 error-detecting code. More... | |
checksum (checksum_hmac_sha256_t type, utility::string_t val) | |
Initializes a new instance of the azure::storage::checksum class with HMAC-SHA256 authentication code. More... | |
bool | is_md5 () const |
Indicates whether this is an MD5 checksum. More... | |
bool | is_sha256 () const |
Indicates whether this is an SHA-256 checksum. More... | |
bool | is_hmac_sha256 () const |
Indicates whether this is an HMAC-SHA256 authentication code. More... | |
bool | is_crc64 () const |
Indicates whether this is a CRC64 checksum. More... | |
bool | empty () const |
Indicates whether any checksum method is used. More... | |
const utility::string_t & | md5 () const |
Gets the MD5 checksum. More... | |
const utility::string_t & | sha256 () const |
Gets the SHA-256 checksum. More... | |
const utility::string_t & | hmac_sha256 () const |
Gets the HMAC-256 authentication code. More... | |
utility::string_t | crc64 () const |
Gets the CRC64 error-detecting code. More... | |
Represents a checksum to verify the integrity of data during transport.
|
inline |
Initializes a new instance of the azure::storage::checksum class without specifying any checksum method.
|
inline |
Initializes a new instance of the azure::storage::checksum class with MD5 hash value.
md5 | A string containing base64-encoded MD5. |
If the provided string is empty, this class is initialized as if checksum method isn't specified.
|
inline |
Initializes a new instance of the azure::storage::checksum class with MD5 hash value.
md5 | A string containing base64-encoded MD5. |
If the provided string is empty, this class is initialized as if checksum method isn't specified.
|
inline |
Initializes a new instance of the azure::storage::checksum class with CRC64 error-detecting code.
crc64 | An integer containing CRC64 code. |
|
inline |
Initializes a new instance of the azure::storage::checksum class without specifying any checksum method.
|
inline |
Initializes a new instance of the azure::storage::checksum class with MD5 hash value.
type | Explicitly specified checksum type, must be azure::storage::checksum_md5. |
val | A string containing base64-encoded MD5. |
|
inline |
Initializes a new instance of the azure::storage::checksum class with SHA-256 hash value.
type | Explicitly specified checksum type, must be azure::storage::checksum_sha256. |
val | A string containing base64-encoded SHA-256. |
|
inline |
Initializes a new instance of the azure::storage::checksum class with CRC64 error-detecting code.
type | Explicitly specified checksum type, must be azure::storage::checksum_crc64. |
val | An integer containing CRC64 code. |
|
inline |
Initializes a new instance of the azure::storage::checksum class with HMAC-SHA256 authentication code.
type | Explicitly specified checksum type, must be azure::storage::checksum_hmac_sha256. |
val | A string containing base64-encoded HMAC-SHA256 authentication code. |
|
inline |
Gets the CRC64 error-detecting code.
|
inline |
Indicates whether any checksum method is used.
true
if no checksum method is used; otherwise, false
.
|
inline |
Gets the HMAC-256 authentication code.
|
inline |
Indicates whether this is a CRC64 checksum.
true
if this is a CRC64 checksum; otherwise, false
.
|
inline |
Indicates whether this is an HMAC-SHA256 authentication code.
true
if this is an HMAC-SHA256 authentication code; otherwise, false
.
|
inline |
Indicates whether this is an MD5 checksum.
true
if this is an MD5 checksum; otherwise, false
.
|
inline |
Indicates whether this is an SHA-256 checksum.
true
if this is an SHA-256 checksum; otherwise, false
.
|
inline |
Gets the MD5 checksum.
|
inline |
Gets the SHA-256 checksum.