MongoDB\Driver\ClientEncryption::getKeys
(mongodb >=1.15.0)
MongoDB\Driver\ClientEncryption::getKeys — Gets all key documents
说明
Finds all key documents in the key vault collection.
参数
此函数没有参数。
返回值
Returns MongoDB\Driver\Cursor on success.
错误/异常
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
- Throws MongoDB\Driver\Exception\ConnectionException if connection to the server fails (for reasons other than authentication).
- Throws MongoDB\Driver\Exception\AuthenticationException if authentication is needed and fails.
- Throws MongoDB\Driver\Exception\RuntimeException on other errors.