File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/examples/java/software/amazon/encryption/s3/examples Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11package software .amazon .encryption .s3 .examples ;
22
3+ import com .amazon .corretto .crypto .provider .AmazonCorrettoCryptoProvider ;
34import org .apache .commons .io .IOUtils ;
4- import org .bouncycastle .jce .provider .BouncyCastleProvider ;
55import software .amazon .awssdk .core .ResponseInputStream ;
66import software .amazon .awssdk .core .sync .RequestBody ;
77import 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.
You can’t perform that action at this time.
0 commit comments