Example usage for com.amazonaws.services.s3.model SSECustomerKey getKey

List of usage examples for com.amazonaws.services.s3.model SSECustomerKey getKey

Introduction

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

Prototype

public String getKey() 

Source Link

Document

Returns the base64-encoded server-side encryption key that was provided in this object's constructor.

Usage

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

License:Apache License

@Nullable
static String getSSECustomerKeyMd5(S3Options options) {
    SSECustomerKey sseCostumerKey = options.getSSECustomerKey();
    if (sseCostumerKey != null) {
        return Base64.encodeAsString(DigestUtils.md5(Base64.decode(sseCostumerKey.getKey())));
    }//from  w w w  . j  a v  a 2 s  .  c om
    return null;
}