amazonwebservices/aws-sdk-for-java — pull request #24 by delta407 (2012-09-08 01:09:04+00:00)
Title: Glacier linear checkums

The existing Glacier upload support does not expose the `x-amz-content-sha256` header. My application uses SHA-256 when transporting data already; ideally, I'd be able to push these precomputed hashes to Glacier and ensure that the stored content matches my expectations, in addition to whatever checksums might be computed locally. Thus, 100ceeccbd0bcaa70c21bcd95b01ca005448018b and 09a0c93a4902784706de3300cee4a153ee0e43b8 add `get`/`set`/`withLinearChecksum` methods to com.amazonaws.services.glacier.model.Upload{Archive,MultipartPart}Request and the corresponding marshalling to `x-amz-content-sha256`.

A separate issue is that UploadArchiveRequest's Javadocs claim over and over again that checksum is a linear checksum. This was a source of confusion -- despite documentation to the contrary, this field is in fact sent as a tree checksum, not a linear checksum. This is addressed in 66c97639b75e0ef01ab4e93cd23b249322505b07.