java.lang.Object
software.amazon.awssdk.http.auth.aws.internal.signer.checksums.ConstantChecksum
All Implemented Interfaces:
Checksum, SdkChecksum

@SdkInternalApi public class ConstantChecksum extends Object implements SdkChecksum
Implementation of SdkChecksum to provide a constant checksum.
  • Constructor Details

    • ConstantChecksum

      public ConstantChecksum(String value)
  • Method Details

    • update

      public void update(int b)
      Specified by:
      update in interface Checksum
    • update

      public void update(byte[] b, int off, int len)
      Specified by:
      update in interface Checksum
    • getValue

      public long getValue()
      Specified by:
      getValue in interface Checksum
    • reset

      public void reset()
      Specified by:
      reset in interface Checksum
    • getChecksumBytes

      public byte[] getChecksumBytes()
      Specified by:
      getChecksumBytes in interface SdkChecksum
    • mark

      public void mark(int readLimit)
      Specified by:
      mark in interface SdkChecksum