Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
balamurugana committed May 2, 2020
1 parent 23c6cad commit bec3913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/SetBucketEncryption.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import io.minio.MinioClient;
import io.minio.errors.MinioException;
import io.minio.messages.SseAlgorithm;
import io.minio.messages.SseConfiguration;
import io.minio.messages.SseConfigurationRule;
import java.io.IOException;
Expand All @@ -41,7 +42,7 @@ public static void main(String[] args)
// "YOUR-SECRETACCESSKEY");

List<SseConfigurationRule> rules = new LinkedList<>();
rules.add(new SseConfigurationRule("my-kms-master-key-id", null));
rules.add(new SseConfigurationRule(null, SseAlgorithm.AES256));
SseConfiguration config = new SseConfiguration(rules);

minioClient.setBucketEncryption("my-bucketname", config);
Expand Down

0 comments on commit bec3913

Please sign in to comment.