PHP - Manual: MongoDB\Driver\ClientEncryption::getKey
2025-02-27
(mongodb >=1.15.0)
MongoDB\Driver\ClientEncryption::getKey — Gets a key document
Finds a single key document in the key vault collection with the given UUID
keyId
.
keyId
A MongoDB\BSON\Binary instance with subtype 4 (UUID) identifying the key document.
Returns the key document, or null
if no document matched.
官方地址:https://www.php.net/manual/en/mongodb-driver-clientencryption.getkey.php