Example usage for com.amazonaws.services.s3.model GetObjectMetadataRequest setSSECustomerKey

List of usage examples for com.amazonaws.services.s3.model GetObjectMetadataRequest setSSECustomerKey

Introduction

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

Prototype

public void setSSECustomerKey(SSECustomerKey sseKey) 

Source Link

Document

Sets the optional customer-provided server-side encryption key to use when retrieving the metadata of a server-side encrypted object.

Usage

From source file:org.apache.beam.sdk.io.aws.s3.S3FileSystem.java

License:Apache License

private ObjectMetadata getObjectMetadata(S3ResourceId s3ResourceId) throws AmazonClientException {
    GetObjectMetadataRequest request = new GetObjectMetadataRequest(s3ResourceId.getBucket(),
            s3ResourceId.getKey());//from w w w.  j  ava 2s. c o m
    request.setSSECustomerKey(options.getSSECustomerKey());
    return amazonS3.get().getObjectMetadata(request);
}