This is not an implementation of KmsClient.
| 407 | kms_connection_config = pe.KmsConnectionConfig() |
| 408 | |
| 409 | class WrongTypeKmsClient(): |
| 410 | """This is not an implementation of KmsClient. |
| 411 | """ |
| 412 | |
| 413 | def __init__(self, config): |
| 414 | self.master_keys_map = config.custom_kms_conf |
| 415 | |
| 416 | def wrap_key(self, key_bytes, master_key_identifier): |
| 417 | return None |
| 418 | |
| 419 | def unwrap_key(self, wrapped_key, master_key_identifier): |
| 420 | return None |
| 421 | |
| 422 | def kms_factory(kms_connection_configuration): |
| 423 | return WrongTypeKmsClient(kms_connection_configuration) |