Note
For details on specific methods, including syntax and examples, click on the specific method to go to its reference page.有关特定方法的详细信息,包括语法和示例,请单击特定方法以转到其参考页面。
The mongo
client-side field level encryption methods require a database connection with client-side field level encryption enabled. mongo
客户端字段级加密方法需要启用客户端字段级加密的数据库连接。If the current database connection was not initiated with client-side field level encryption enabled, either:如果当前数据库连接未在启用客户端字段级加密的情况下启动,则:
Mongo()
constructor from the mongo
shell to establish a connection with the required client-side field level encryption options. mongo
shell中的Mongo()
构造函数与所需的客户端字段级加密选项建立连接。Mongo()
method supports both Amazon Web Services and Local Key Management Service (KMS) providers for Customer Master Key (CMK) management.Mongo()
方法同时支持Amazon Web服务和本地密钥管理服务(KMS)提供者,用于客户主密钥(CMK)管理。
or
mongo
shell command line options to establish a connection with the required options. mongo
shell命令行选项与所需选项建立连接。The following methods are for the MongoDB 以下方法仅适用于MongoDB mongo
shell only. mongo
shell。For instructions on implementing client-side field level encryption using a MongoDB 4.2-compatible driver, defer to the driver documentation. 有关使用MongoDB 4.2兼容驱动程序实现客户端字段级加密的说明,请参阅驱动程序文档。See Driver Compatibility Table for a complete list of 4.2-compatible drivers with support for client-side field level encryption.有关支持客户端字段级加密的4.2兼容驱动程序的完整列表,请参阅驱动程序兼容性表。
getKeyVault() |
|
KeyVault.createKey() |
|
KeyVault.deleteKey() |
|
KeyVault.getKey() |
|
KeyVault.getKeys() |
|
KeyVault.addKeyAlternateName() |
|
KeyVault.removeKeyAlternateName() |
|
KeyVault.getKeyByAltName() |
|
getClientEncryption() |
|
ClientEncryption.encrypt() |
|
ClientEncryption.decrypt() |