Describe the bug
public AmazonS3 createEncryptionClient() {
checkEncryptionConfiguration();
SecretKey symmetricKey = new SecretKeySpec(key, "AES");
eraseKeyInHeap();
return AmazonS3EncryptionClientV2.encryptionBuilder()
.withEncryptionMaterialsProvider(
new StaticEncryptionMaterialsProvider(new EncryptionMaterials(symmetricKey)))
.withCryptoConfiguration(new CryptoConfigurationV2().withCryptoMode(CryptoMode.AuthenticatedEncryption))
.withEndpointConfiguration(
new AwsClientBuilder.EndpointConfiguration(infoConfig.getUrl(), Regions.US_WEST_2.getName()))
.withClientConfiguration(buildConfiguration())
.withCredentials(buildProvider())
.withRegion(Regions.US_WEST_2)
.disableChunkedEncoding()
.withPathStyleAccessEnabled(true)
.withRequestHandlers()
.build();
}
Regression Issue
Expected Behavior
aws-sdk-java-v2
version:2.33.4
offring the method to replace the above code
Current Behavior
null
Reproduction Steps
null
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.33.4
JDK version used
java JDK 21
Operating System and version
null