/** * Sets the optional customer-provided server-side encryption key to use to * decrypt this object, and returns the updated GetObjectRequest so that * additional method calls may be chained together. * * @param sseKey * The optional customer-provided server-side encryption key to * use to decrypt this object. * * @return The optional customer-provided server-side encryption key to use * to decrypt this object. */ public GetObjectRequest withSSECustomerKey(SSECustomerKey sseKey) { setSSECustomerKey(sseKey); return this; }
/** * Sets the optional customer-provided server-side encryption key to use to * decrypt this object, and returns the updated GetObjectRequest so that * additional method calls may be chained together. * * @param sseKey * The optional customer-provided server-side encryption key to * use to decrypt this object. * * @return The optional customer-provided server-side encryption key to use * to decrypt this object. */ public GetObjectRequest withSSECustomerKey(SSECustomerKey sseKey) { setSSECustomerKey(sseKey); return this; }
/** * Sets the optional customer-provided server-side encryption key to use to * decrypt this object, and returns the updated GetObjectRequest so that * additional method calls may be chained together. * * @param sseKey * The optional customer-provided server-side encryption key to * use to decrypt this object. * * @return The optional customer-provided server-side encryption key to use * to decrypt this object. */ public GetObjectRequest withSSECustomerKey(SSECustomerKey sseKey) { setSSECustomerKey(sseKey); return this; }
/** * Sets the optional customer-provided server-side encryption key to use to * decrypt this object, and returns the updated GetObjectRequest so that * additional method calls may be chained together. * * @param sseKey * The optional customer-provided server-side encryption key to * use to decrypt this object. * * @return The optional customer-provided server-side encryption key to use * to decrypt this object. */ public GetObjectRequest withSSECustomerKey(SSECustomerKey sseKey) { setSSECustomerKey(sseKey); return this; }
getObjectRequest.setSSECustomerKey(new SSECustomerKey("testKey")); assertTrue(ServiceUtils.skipMd5CheckPerRequest(getObjectRequest));
request.setSSECustomerKey(options.getSSECustomerKey()); if (position > 0) { request.setRange(position, contentLength);
if (S3AEncryptionMethods.SSE_C.equals(serverSideEncryptionAlgorithm) && StringUtils.isNotBlank(serverSideEncryptionKey)){ request.setSSECustomerKey(new SSECustomerKey(serverSideEncryptionKey));