Class ChecksumUtils
Utilities for working with the checksums used to validate request/response integrity
public static class ChecksumUtils
  - Inheritance
 - 
      
      ChecksumUtils
 
- Inherited Members
 
Methods
SelectChecksumForResponseValidation(ICollection<CoreChecksumAlgorithm>, IWebResponseData)
Selects which checksum to use to validate the integrity of a response
public static CoreChecksumAlgorithm SelectChecksumForResponseValidation(ICollection<CoreChecksumAlgorithm> operationSupportedChecksums, IWebResponseData responseData)
  Parameters
operationSupportedChecksumsICollection<CoreChecksumAlgorithm>List of checksums supported by the service operation
responseDataIWebResponseDataResponse from the service, which potentially contains x-amz-checksum-* headers
Returns
- CoreChecksumAlgorithm
 Single checksum algorithm to use for validating the response, or NONE if checksum validation should be skipped
SetRequestChecksum(IRequest, string, bool)
Attempts to select and then calculate the checksum for a request
public static void SetRequestChecksum(IRequest request, string checksumAlgorithm, bool fallbackToMD5 = true)
  Parameters
requestIRequestRequest to calculate the checksum for
checksumAlgorithmstringChecksum algorithm to use, specified on the request using a service-specific enum
fallbackToMD5boolIf checksumAlgorithm is NONE, this flag controls whether or not to fallback to using a MD5 to generate a checksum.
SetRequestChecksumMD5(IRequest)
Attempts to select and then calculate a MD5 checksum for a request
public static void SetRequestChecksumMD5(IRequest request)
  Parameters
requestIRequestRequest to calculate the checksum for