Skip to content

Commit 3d905a9

Browse files
committed
accp
1 parent a6e14d1 commit 3d905a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/examples/java/software/amazon/encryption/s3/examples/MultipartUploadExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package software.amazon.encryption.s3.examples;
22

3+
import com.amazon.corretto.crypto.provider.AmazonCorrettoCryptoProvider;
34
import org.apache.commons.io.IOUtils;
4-
import org.bouncycastle.jce.provider.BouncyCastleProvider;
55
import software.amazon.awssdk.core.ResponseInputStream;
66
import software.amazon.awssdk.core.sync.RequestBody;
77
import software.amazon.awssdk.services.s3.S3Client;
@@ -55,8 +55,8 @@ public static void LowLevelMultipartUpload() throws IOException {
5555
final InputStream inputStream = new BoundedInputStream(fileSizeLimit);
5656
final InputStream objectStreamForResult = new BoundedInputStream(fileSizeLimit);
5757

58-
Security.addProvider(new BouncyCastleProvider());
59-
Provider PROVIDER = Security.getProvider("AmazonCorrettoCryptoProvider");
58+
Security.addProvider(new AmazonCorrettoCryptoProvider());
59+
Provider PROVIDER = Security.getProvider(AmazonCorrettoCryptoProvider.PROVIDER_NAME);
6060

6161
// Instantiate the S3 Encryption Client to encrypt and decrypt
6262
// by specifying a KMS Key with the kmsKeyId builder parameter.

0 commit comments

Comments
 (0)