| 31 | PyKmsClient::~PyKmsClient() {} |
| 32 | |
| 33 | std::string PyKmsClient::WrapKey(const ::arrow::util::SecureString& key, |
| 34 | const std::string& master_key_identifier) { |
| 35 | std::string wrapped; |
| 36 | auto st = SafeCallIntoPython([&]() -> Status { |
| 37 | vtable_.wrap_key(handler_.obj(), key, master_key_identifier, &wrapped); |
| 38 | return CheckPyError(); |
| 39 | }); |
| 40 | if (!st.ok()) { |
| 41 | throw ::parquet::ParquetStatusException(st); |
| 42 | } |
| 43 | return wrapped; |
| 44 | } |
| 45 | |
| 46 | ::arrow::util::SecureString PyKmsClient::UnwrapKey( |
| 47 | const std::string& wrapped_key, const std::string& master_key_identifier) { |
nothing calls this directly
no test coverage detected