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

Method UnwrapKey

python/pyarrow/src/arrow/python/parquet_encryption.cc:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46::arrow::util::SecureString PyKmsClient::UnwrapKey(
47 const std::string& wrapped_key, const std::string& master_key_identifier) {
48 arrow::util::SecureString unwrapped;
49 auto st = SafeCallIntoPython([&]() -> Status {
50 vtable_.unwrap_key(handler_.obj(), wrapped_key, master_key_identifier, &unwrapped);
51 return CheckPyError();
52 });
53 if (!st.ok()) {
54 throw ::parquet::ParquetStatusException(st);
55 }
56 return unwrapped;
57}
58
59PyKmsClientFactory::PyKmsClientFactory(PyObject* handler, PyKmsClientFactoryVtable vtable)
60 : handler_(handler), vtable_(std::move(vtable)) {

Callers

nothing calls this directly

Calls 5

SafeCallIntoPythonFunction · 0.85
CheckPyErrorFunction · 0.85
unwrap_keyMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected