Skip navigation links
com.ibm.cos.v2.http.auth.aws.internal.signer

Interface Checksummer

    • Method Detail

      • create

        static Checksummer create()
        Get a default implementation of a checksummer, which calculates the SHA-256 checksum and places it in the x-amz-content-sha256 header.
      • forFlexibleChecksum

        static Checksummer forFlexibleChecksum(ChecksumAlgorithm checksumAlgorithm)
        Get a flexible checksummer that performs two checksums: the given checksum-algorithm and the SHA-256 checksum. It places the SHA-256 checksum in x-amz-content-sha256 header, and the given checksum-algorithm in the x-amz-checksum-[name] header.
      • forPrecomputed256Checksum

        static Checksummer forPrecomputed256Checksum(String precomputedSha256)
        Get a precomputed checksummer which places the precomputed checksum to the x-amz-content-sha256 header.
      • forFlexibleChecksum

        static Checksummer forFlexibleChecksum(String precomputedSha256,
                                               ChecksumAlgorithm checksumAlgorithm)
        Get a flexible checksummer that performs two checksums: the given checksum-algorithm and a precomputed checksum from the given checksum string. It places the precomputed checksum in x-amz-content-sha256 header, and the given checksum-algorithm in the x-amz-checksum-[name] header.

Copyright © 2026. All rights reserved.