定義
MongoDB\Client::createClientEncryption()Returns a MongoDB\Driver\ClientEncryption object for manual encryption and decryption of values.
function createClientEncryption(array $options): MongoDB\Driver\ClientEncryption
パラメーター
$options: 配列必要なオプションを指定する配列。サポートされているオプションのリストについては、 MongoDB$Driver\Manager::createClientEncryption() 拡張ドキュメントを参照してください。
If a
keyVaultClientオプションにMongoDB\Clientが指定されている場合は、 拡張機能のMongoDB\Driver\Manager にラップされません。
Return Values
A MongoDB\Driver\ClientEncryption instance which can be used to encrypt and decrypt values.
エラーと例外
MongoDB\Exception\InvalidArgumentException は、パラメータまたはオプションの解析に関連するエラーの場合は です。
拡張レベルでのパラメータまたはオプションの解析に関連するエラーの場合は、 MongoDB\Driver\Exception\InvalidArメントException 。