Class CrcChecksumProvider


  • @SdkInternalApi
    public final class CrcChecksumProvider
    extends Object
    Utility class providing implementations of CRC checksums, specifically CRC32C and CRC64NVME.

    Supports the following implementations for CRC32C:

    • Java-based CRC32C (Java 9+)
    • CRT-based CRC32C (using AWS CRT library)
    • SDK-based CRC32C (fallback)

    Only supports CRT-based implementation for CRC64NVME (using AWS CRT library).

    For internal use only (SdkInternalApi).

    • Method Detail

      • crc32cImplementation

        public static SdkChecksum crc32cImplementation()
        Tries to create a Java 9-based CRC32C checksum. If it's not available, it tries to create a CRT-based checksum. If both are not available, it falls back to an SDK-based CRC32C checksum.
        Returns:
        An instance of SdkChecksum, based on the first available option.