Class ChecksumUtil.ConstantChecksumAlgorithm

java.lang.Object
software.amazon.awssdk.http.auth.aws.internal.signer.util.ChecksumUtil.ConstantChecksumAlgorithm
All Implemented Interfaces:
ChecksumAlgorithm
Enclosing class:
ChecksumUtil

public static class ChecksumUtil.ConstantChecksumAlgorithm extends Object implements ChecksumAlgorithm
An implementation of a ChecksumAlgorithm that will map to ConstantChecksum, which provides a constant checksum. This isn't super useful, but is needed in cases such as signing, where the content-hash (a cryptographically-secure "checksum") can be a set of pre-defined values.
  • Constructor Details

    • ConstantChecksumAlgorithm

      public ConstantChecksumAlgorithm(String value)
  • Method Details

    • algorithmId

      public String algorithmId()
      Description copied from interface: ChecksumAlgorithm
      The ID of the checksum algorithm. This is matched against algorithm names used in smithy traits (e.g. "CRC32C" from the aws.protocols#HTTPChecksum smithy trait)
      Specified by:
      algorithmId in interface ChecksumAlgorithm