使用关键字参数初始化配置信息。
(self, **kwargs)
| 28 | ENCRYPTION_ALGORITHM = "encryptionAlgorithm" |
| 29 | |
| 30 | def __init__(self, **kwargs): |
| 31 | """使用关键字参数初始化配置信息。""" |
| 32 | self.use_compression = kwargs.get('use_compression', True) |
| 33 | self.use_encryption = kwargs.get('use_encryption', False) |
| 34 | self.password = kwargs.get('password', None) |
| 35 | self.encryption_algorithm = kwargs.get('encryption_algorithm', 'AES128') |
| 36 | |
| 37 | def is_use_compression(self): |
| 38 | """判断当前是否启用了数据压缩功能。""" |
nothing calls this directly
no outgoing calls
no test coverage detected