Class LegacyMd5Plugin

  • All Implemented Interfaces:
    AutoCloseable, SdkPlugin, SdkAutoCloseable

    @SdkPublicApi
    public final class LegacyMd5Plugin
    extends Object
    implements SdkPlugin
    Plugin that enables legacy MD5 checksum behavior for S3 operations.

    This plugin configures the S3 client to add an interceptor that maintains backward compatibility with older SDK versions that automatically calculated MD5 checksums for certain operations.

    Use this plugin only when you need to maintain compatibility with applications that depend on the legacy MD5 checksum behavior, particularly for operations that previously calculated MD5 checksums automatically.

    Example usage:

    If you want to add MD5 checksums to the operations that require checksums and want to skip adding of SDK Default checksums for operations that support checksums but not required, then you can enable ClientBuilder options requestChecksumCalculation and responseChecksumValidation as WHEN_REQUIRED, this will add SDK default checksums only to operation that required checksums

    See Also:
    RequestChecksumCalculation, ResponseChecksumValidation