| 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 | |
| 59 | PyKmsClientFactory::PyKmsClientFactory(PyObject* handler, PyKmsClientFactoryVtable vtable) |
| 60 | : handler_(handler), vtable_(std::move(vtable)) { |
nothing calls this directly
no test coverage detected