Class LegacyMd5Plugin
- java.lang.Object
-
- software.amazon.awssdk.services.s3.LegacyMd5Plugin
-
- All Implemented Interfaces:
AutoCloseable,SdkPlugin,SdkAutoCloseable
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureClient(SdkServiceClientConfiguration.Builder config)static SdkPlugincreate()
-
-
-
Method Detail
-
create
public static SdkPlugin create()
-
configureClient
public void configureClient(SdkServiceClientConfiguration.Builder config)
- Specified by:
configureClientin interfaceSdkPlugin
-
-