Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\ClientEncryption::getKeyByAltNameMongoDB\Driver\ClientEncryption::removeKeyAltName>
^MongoDB\Driver\ClientEncryptionLast updated: Mon, 26 Oct 2026

MongoDB\Driver\ClientEncryption::getKeys

(mongodb >=1.15.0)

MongoDB\Driver\ClientEncryption::getKeys — Gets all key documents

Description

final public function MongoDB\Driver\ClientEncryption::getKeys(): MongoDB\Driver\Cursor

Finds all key documents in the key vault collection.

Parameters

This function has no parameters.

Return Values

Returns MongoDB\Driver\Cursor on success.

Errors/Exceptions


<MongoDB\Driver\ClientEncryption::getKeyByAltNameMongoDB\Driver\ClientEncryption::removeKeyAltName>
^MongoDB\Driver\ClientEncryptionLast updated: Mon, 26 Oct 2026