public final class LegacyMd5Plugin extends Object implements SdkPlugin
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
| Modifier and Type | Method and Description |
|---|---|
void |
configureClient(SdkServiceClientConfiguration.Builder config)
Modify the provided client configuration.
|
static SdkPlugin |
create() |
public static SdkPlugin create()
public void configureClient(SdkServiceClientConfiguration.Builder config)
SdkPluginconfigureClient in interface SdkPluginCopyright © 2026. All rights reserved.