Example usage for com.amazonaws.services.s3.model PutObjectRequest withSSECustomerKey

List of usage examples for com.amazonaws.services.s3.model PutObjectRequest withSSECustomerKey

Introduction

In this page you can find the example usage for com.amazonaws.services.s3.model PutObjectRequest withSSECustomerKey.

Prototype

@Override
    @SuppressWarnings("unchecked")
    public PutObjectRequest withSSECustomerKey(SSECustomerKey sseKey) 

Source Link

Usage

From source file:com.pinterest.secor.uploader.S3UploadManager.java

License:Apache License

private void enableCustomerEncryption(PutObjectRequest uploadRequest) {
    SSECustomerKey sseKey = new SSECustomerKey(mConfig.getAwsSseCustomerKey());
    uploadRequest.withSSECustomerKey(sseKey);
}

From source file:io.druid.storage.s3.CustomServerSideEncryption.java

License:Apache License

@Override
public PutObjectRequest decorate(PutObjectRequest request) {
    return request.withSSECustomerKey(key);
}

From source file:io.minio.awssdk.tests.S3TestUtils.java

License:Apache License

void uploadObject(String bucketName, String keyName, String filePath, SSECustomerKey sseKey)
        throws IOException {

    File f = new File(filePath);
    PutObjectRequest putObjectRequest = new PutObjectRequest(bucketName, keyName, f);
    if (sseKey != null) {
        putObjectRequest.withSSECustomerKey(sseKey);
    }/*from  w w w  .ja va  2  s . c  o  m*/
    s3Client.putObject(putObjectRequest);
}