File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
s3/src/main/java/ch/cyberduck/core/s3 Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2929
3030import com .google .common .collect .Maps ;
3131
32+ import static org .jets3t .service .model .StorageObject .METADATA_HEADER_SERVER_SIDE_ENCRYPTION_KMS_KEY_ID ;
33+
3234public class S3AttributesAdapter implements AttributesAdapter <StorageObject > {
3335
3436 @ Override
@@ -55,9 +57,9 @@ else if(object.containsMetadata("storage-class")) {
5557 if (object instanceof S3Object ) {
5658 attributes .setVersionId (((S3Object ) object ).getVersionId ());
5759 }
58- if (object .containsMetadata ("server-side-encryption-aws-kms-key-id" )) {
60+ if (object .containsMetadata (METADATA_HEADER_SERVER_SIDE_ENCRYPTION_KMS_KEY_ID )) {
5961 attributes .setEncryption (new Encryption .Algorithm (object .getServerSideEncryptionAlgorithm (),
60- object .getMetadata ("server-side-encryption-aws-kms-key-id" ).toString ()) {
62+ object .getMetadata (METADATA_HEADER_SERVER_SIDE_ENCRYPTION_KMS_KEY_ID ).toString ()) {
6163 @ Override
6264 public String getDescription () {
6365 return String .format ("SSE-KMS (%s)" , key );
You can’t perform that action at this time.
0 commit comments