MCPcopy Create free account
hub / github.com/apache/arrow / GetSSECustomerKeyHeaders

Function GetSSECustomerKeyHeaders

cpp/src/arrow/filesystem/s3_internal.h:331–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329};
330
331inline Result<std::optional<SSECustomerKeyHeaders>> GetSSECustomerKeyHeaders(
332 const std::string& sse_customer_key) {
333 if (sse_customer_key.empty()) {
334 return std::nullopt;
335 }
336 ARROW_ASSIGN_OR_RAISE(auto md5, internal::CalculateSSECustomerKeyMD5(sse_customer_key));
337 return SSECustomerKeyHeaders{arrow::util::base64_encode(sse_customer_key), md5,
338 "AES256"};
339}
340
341template <typename S3RequestType>
342Status SetSSECustomerKey(S3RequestType* request, const std::string& sse_customer_key) {

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected