Class FlexibleChecksummer

  • All Implemented Interfaces:
    Checksummer

    public final class FlexibleChecksummer
    extends Object
    implements Checksummer
    A "flexible" implementation of a checksummer. It takes a map of checksums and their header names, computes them efficiently by updating each checksum while reading the payload (once), and adds the computed checksum strings to the request using the given header names in the map. This should be used in cases where a (flexible) checksum algorithm is present during signing.